Preserved Topic: simple "close browser" command (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Kapolei, Hawaii USA |
posted 08-10-2001 02:11
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. |
posted 08-10-2001 02:15
<a href="javascript:window.close()">close</a> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-10-2001 02:49
Or use |
Bipolar (III) Inmate From: A ripped t-shirt pocket. |
posted 08-10-2001 02:53
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 |
posted 08-14-2001 23:11
That worked! thanks. Is there another way of doing it without asking for permission to be closed? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-14-2001 23:21
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.) |