Christopher Blizzard wrote:
> 
> This mostly happens as a result of a window.open() in an onclose()
> handler ( I think that's the right name. )
> 
> Could we add a pref'ed OK/Cancel question dialog when that happens?  It
> happens so rarely and I know a lot of unsuspecting people that has
> happened to.  Of course, I don't know if it's possible to tell if you
> are doing an open in a close.

I believe it's possible to disable onclose entirely (can't remember how,
but I'm sure I saw it mentioned once alongside the "disable window.open"
thing).

Are there any legitimate uses for onclose()? Is there any reason that I
shouldn't turn off onclose for all sites all the time? And if so, should
mozilla.org consider making onclose disabled the default? (I doubt, for
some reason, that Netscape/AOL would ever consider doing this in their
branded browser...)

Stuart.

Reply via email to