Thanks - that makes sense. I was viewing it in firebug. It actually did say just undefined until I clicked on the value and it opened to an editable string that said undefinedundefined. Might be a firebug...bug.
Michael Geary wrote: > >> I was poking around the DOM looking for incorrectly scoped >> variables and I found the following node: >> >> window.undefined = "undefinedundefined" >> >> What is this for? > > The window object has a property named "undefined" whose value is the > undefined value. > > IOW, when you run code like this: > > if( foo === undefined ) alert( 'foo is undefined' ); > > What you are really doing is the same as: > > if( foo === window.undefined ) alert( 'foo is undefined' ); > > I don't know what tool you are using to view the DOM or why it says that > window.undefined has a value of "undefinedundefined". That sounds like a > bug > in the DOM viewer, unless this code has been executed, which seems > unlikely: > > window.undefined = "undefinedundefined"; > > -Mike > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/window.undefined-%3D-%22undefinedundefined%22--tf3405952.html#a9496029 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/