Subj : Re: Equivalent of JS_InitClass for global object? To : netscape.public.mozilla.jseng From : jjl@pobox.com (John J. Lee) Date : Tue Aug 26 2003 09:26 pm Brendan Eich writes: > >I'll take your word for that, but I don't understand why (I *do* still [...] > Windows are global objects in the DOM level 0, so a variable (var x = > 42, e.g.) or function declaration (function f() {return 42;} at > top-level) finds a property of the global object, which can be fetched > via window.x or window.f, or if in another window accessible according Damn. [...] > Plus, you can count on window object identity invariance: > otherWindow.myWindow = window; ; > assert(otherWindow.myWindow == window). I don't understand what that has to do with my windows not being global objects. [...] > >What's the best way to find out about this kind of thing? ATM, I don't [...] > news://news.mozilla.org/netscape.public.mozilla.dom newsgroup, at [...] Thanks John .