[thelist] javascript: popup windows on mac

John Pye john.pye at purplehouse.com
Thu Mar 22 13:32:13 CST 2001


Joe Crawford wrote:
>        if(p&&!p.closed&&p.close)
>              ^^^^^^^^^
> Try taking that one out. I don't know if that check is a meaningful one
> in IE5.

My understanding was that for older browsers (perhaps pre JS 1.2, perhaps
Netscape) you needed to check that a window had not already been closed
before you tried to close it - and anyway if 'p.closed' IS undefined, it's
going to give a 'true' because the expr's been NOT-ed.

> On another note: is there a nice reference to objects and events which
> are scriptable? In the first JavaScript Quickstart book there was a very
> nice map of the window, links, location, history, images, etc arrays,
> and their properties.

I use the MSDN site (online) along with somewhat buggy but reasonably good
info HTML Reference Library (download)along with O'Reilly's Javascript The
Definitive Guide and occaisionally the Netscape Javascript Client Reference
(online). If there's a better place to go, let me know!


John Pye
http://www.creativebase.com/
+44 (0)20 7258 6900







More information about the thelist mailing list