@MrNobodyNov 12.2008 — #Depends upon how (the context in which) it is used. I have never seen such an assignment used before, though. I have seen where a similar construct would be used to see if a window has encountered an error during loading. For example: [CODE]window.onerror = function() { alert(this.location.href + ' did not load successfully.); }[/CODE] Otherwise, I am not aware of any [B]error[/B] property for the [B]window[/B] object. Thus, this could be used to create a custom property in the [B]window[/B] object for any number of uses.
@MrNobodyNov 13.2008 — #All newly created variables are properties of the window object.[/QUOTE] You needed to qualify that. Because newly created variables inside of a function are not properties of the window object.
@MrNobodyNov 13.2008 — #Duh! Good job of glossing over (ignoring) the original issue. Those three words "that is true" or "you are correct" just don't come out, eh? :rolleyes:
@felgallNov 14.2008 — #Duh! Good job of glossing over (ignoring) the original issue. Those three words "that is true" or "you are correct" just don't come out, eh? :rolleyes:[/QUOTE]
You pointed out an error in my original statement and I therefore corrected my statement. I apologise for forgetting to thank you for pointing out the error in my original statement.