Re: javascript: close()

From: Marek Pribyl (marek@board.cz)
Date: 04. 03. 2002, 16:40 CET


> Da se nejak zamezit zobrazovani potvrzovaciho dialogu
>  pri zavirani okna pomoci javascriptu - fce close()?

... uz jsem sam nasel odpoved, treba to nekoho bude zajimat...

faq: why is the browser asking me if i want to close the window?
if you are getting a message that says something like "are you sure you 
want to close this window?" when you execute your close window command, 
you are trying to close the *main* browser window, not a window that 
you've popped up. any time you try to close the main browser window with 
javascript, the browser will ask the user that question. there's no way 
to get rid of it 'cause otherwise a malicious site could use the window 
closer to shut down the user's browser without their consent. you can 
only silently close windows you've opened yourself with javascript.



This archive was generated by hypermail 2.1.2 : 04. 03. 2002, 16:40 CET