M
mk834tt
Beginner here.
Here is the function correctly written:
function countKids() {
var body = document.body;
var kids = body.childNodes;
var lengthis = kids.length;
alert("nodes in body = " + lengthis);
}
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. The debugger always died in a internal debugger
script. How do you catch
these things. Isn't there a little parser that out there to check
syntax?
Thanks
Here is the function correctly written:
function countKids() {
var body = document.body;
var kids = body.childNodes;
var lengthis = kids.length;
alert("nodes in body = " + lengthis);
}
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. The debugger always died in a internal debugger
script. How do you catch
these things. Isn't there a little parser that out there to check
syntax?
Thanks