![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Here is the way I constructed it. function countKids() { var body = document.body; var kids = body.childNodes var lengthis = kids.length; alert("nodes in body = " + lengthis); } If I were using perl, for example, the parser would let me know (usually) what and where I did the damge. How do you find stuff like that in an html file? I tried the venkman debugger (Firefox/2.0.0.11, Venkman version 0.9.87.2) but it wouldn't load the functions. |
#3
| |||
| |||
|
|
Check the Firefox error console, it should display an error alike Martin Honnen http://JavaScript.FAQTs.com/ |
#4
| |||
| |||
|
|
Check the Firefox error console, it should display an error alike Martin Honnen http://JavaScript.FAQTs.com/ OOOO! Thanks Martin. |
![]() |
| Thread Tools | |
| Display Modes | |
| |