Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works in NS & IE but not FF 1

Status
Not open for further replies.

mmerlinn

Programmer
May 20, 2005
748
US
[ ]

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
 
[ ]

Thank you.

Figured it must be something like that, but was driving me crazy for a day.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top