[ ]
This returns "undefined" in FireFox and "Blah blah blah." in Netscape and Internet Explorer:
[tt]
var closed = new Array(1);
closed[1] = "Blah blah blah.";
document.write(closed[1]);
[/tt]
This returns "Blah blah blah." in all three browsers:
[tt]
var klosed = new Array(1);
klosed[1] = "Blah blah blah.";
document.write(klosed[1]);
[/tt]
Is "closed" a reserved word in javascript?
mmerlinn
"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Steven Raymond
This returns "undefined" in FireFox and "Blah blah blah." in Netscape and Internet Explorer:
[tt]
var closed = new Array(1);
closed[1] = "Blah blah blah.";
document.write(closed[1]);
[/tt]
This returns "Blah blah blah." in all three browsers:
[tt]
var klosed = new Array(1);
klosed[1] = "Blah blah blah.";
document.write(klosed[1]);
[/tt]
Is "closed" a reserved word in javascript?
mmerlinn
"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Steven Raymond