wrote:
> 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.
Check the Firefox error console, it should display an error alike
Error: missing ; before statement
Source File:
http://example.com/file.html
Source Code:
var kids = body.childNodes var lengthis = kids.length;
and indicate the position.
--
Martin Honnen
http://JavaScript.FAQTs.com/