![]() Preserved Topic: simple "close browser" command (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Kapolei, Hawaii USA |
![]() Does anyone have a simple "CLOSE BROWSER" command. I for the life of god cannot figure it out. Reason is I have a site |
Bipolar (III) Inmate From: A ripped t-shirt pocket. |
![]() <a href="javascript:window.close()">close</a> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Or use |
Bipolar (III) Inmate From: A ripped t-shirt pocket. |
![]() or you could get real nifty and have an <body onload="javascript:window.open('remotecontrol.html')> and then from your remote control have all the names of the window listed in an array and use <a href="javascript:window.close('windownamearray')">kill all windows</a> and then rip use some dhtml fireworks. |
Bipolar (III) Inmate From: Kapolei, Hawaii USA |
![]() That worked! thanks. Is there another way of doing it without asking for permission to be closed? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() If your script opened the window, then it can be closed without an automatic pop-up. But you can't close the window the user opened themselves without their permission. (And thank goodness, a site that did that would make me mad.) |