Click here to Skip to main content
15,894,539 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Disable Tabbed browsing using javascript Pin
Steve Echols25-Oct-10 15:58
Steve Echols25-Oct-10 15:58 
GeneralRe: Disable Tabbed browsing using javascript Pin
moocr.com1-Nov-10 15:32
moocr.com1-Nov-10 15:32 
QuestiongetElementById not working in Windows Mobile 5.0 Pin
Rahul Chitte24-Oct-10 21:19
Rahul Chitte24-Oct-10 21:19 
QuestionUsing Google Analytics _trackEvent() Pin
BDMaruf24-Oct-10 3:53
BDMaruf24-Oct-10 3:53 
AnswerRe: Using Google Analytics _trackEvent() Pin
Md. Marufuzzaman24-Oct-10 3:58
professionalMd. Marufuzzaman24-Oct-10 3:58 
QuestionFind Gridview Footer Row Pin
SatyaKeerthi1522-Oct-10 1:27
SatyaKeerthi1522-Oct-10 1:27 
AnswerRe: Find Gridview Footer Row Pin
Steve Echols25-Oct-10 16:22
Steve Echols25-Oct-10 16:22 
Questiondom childNodes problem Pin
ekba8919-Oct-10 5:34
ekba8919-Oct-10 5:34 
I've a simple html file and i want to get childNodes in it but it returns undefined.Here is the html and js files for them.

<html>
  <head>
    <title>My Web Page</title>
  </head>
  <body>
    <h1>Test</h1>
  </body>
  <script type="text/javascript" src="test.js"></script>
</html>


window.onload = asd;

function asd(){
        var element = document.childNodes[0].childNodes[0].childNodes[0];
	alert(element.tagName);
}


element.tagName should be title but it is undefined.And when i change the last childNodes[0] to childNodes[2] it return title
AnswerRe: dom childNodes problem Pin
Gerben Jongerius20-Oct-10 2:45
Gerben Jongerius20-Oct-10 2:45 
GeneralRe: dom childNodes problem Pin
ekba8920-Oct-10 8:41
ekba8920-Oct-10 8:41 
QuestionDocument.Write not working. Pin
thebiostyle14-Oct-10 14:54
thebiostyle14-Oct-10 14:54 
AnswerRe: Document.Write not working. Pin
Dr.Walt Fair, PE14-Oct-10 15:18
professionalDr.Walt Fair, PE14-Oct-10 15:18 
GeneralRe: Document.Write not working. Pin
thebiostyle14-Oct-10 17:39
thebiostyle14-Oct-10 17:39 
AnswerRe: Document.Write not working. Pin
Pete O'Hanlon14-Oct-10 22:46
mvePete O'Hanlon14-Oct-10 22:46 
GeneralRe: Document.Write not working. [modified] Pin
thebiostyle15-Oct-10 6:50
thebiostyle15-Oct-10 6:50 
GeneralRe: Document.Write not working. Pin
thebiostyle25-Oct-10 6:14
thebiostyle25-Oct-10 6:14 
QuestionError in developing my first AJAX example. . . . Pin
khurram_shahzad14-Oct-10 6:03
khurram_shahzad14-Oct-10 6:03 
AnswerRe: Error in developing my first AJAX example. . . . Pin
Eddy Vluggen14-Oct-10 6:46
professionalEddy Vluggen14-Oct-10 6:46 
GeneralRe: Error in developing my first AJAX example. . . . [modified] Pin
Shantanu Gupta 133723-Oct-10 11:08
Shantanu Gupta 133723-Oct-10 11:08 
AnswerRe: Error in developing my first AJAX example. . . . Pin
moocr.com1-Nov-10 15:49
moocr.com1-Nov-10 15:49 
QuestionRetrieving data from an access database and show it to the user. Pin
gamer112711-Oct-10 3:04
gamer112711-Oct-10 3:04 
AnswerRe: Retrieving data from an access database and show it to the user. Pin
Eddy Vluggen14-Oct-10 6:45
professionalEddy Vluggen14-Oct-10 6:45 
AnswerRe: Retrieving data from an access database and show it to the user. Pin
Sanket898924-Oct-10 8:24
Sanket898924-Oct-10 8:24 
AnswerRe: Retrieving data from an access database and show it to the user. Pin
V.25-Oct-10 4:15
professionalV.25-Oct-10 4:15 
QuestionMove items up and down in listBox Pin
Member 32222648-Oct-10 4:55
Member 32222648-Oct-10 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.