![]() Topic awaiting preservation: Mozilla hates self.close() (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() I've been playing with DHTML. I have a Layer that floats across the page, and when it reaches the edge, the window closes. This works in IE, but Mozilla will not respond to self.close(). Any ideas why this usually cooperative browser is being so stubborn? |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() just in case anyone else is trying to do the impossible, I found out that Mozilla only allows self.close() for windows opened by script. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Security reasons. |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() Good point! If I had truly intended something malicous, as a proper villain I would now be forced to say "Curses, foiled again" . |
Nervous Wreck (II) Inmate From: Utreg, NL |
![]() I'm not sure if I should post it, but there is a "hack" that allows you to close a user-opened window anyway, bypassing the "are you sure" message you get for these windows. The trick lies in telling the window that in fact he is not himself, but "someone else". (how's that for 9:17 am |