Javascript - General Pitfalls

Avoid:

var name = "some value";

Although the word name is not a reserved word. Browsers (both Firefox 1.5 and Explorer 5) confuse this variable with window.name. The above code was inside a function so the browser should not confuse it with window.name, but it does, so you should avoid it.

page_revision: 0, last_edited: 1227374996|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License