View Full Version : Close Window script?


Gadget
05-05-2003, 02:59 AM
I'm trying to make a link that, when clicked, will close the window but I can't seem fo find it ANYWHERE! :( Anyone know how to do this?
Thanks in advance!

Dude128
05-05-2003, 04:09 AM
<a href="javascript:window.close()">Close window</a>

you can always search the forum, there have been a bunch of threads asking this ;)

Gadget
05-05-2003, 04:24 AM
Thank you! I did search the forum but all that turned up was links to the website stuff, which I also already looked through. :P
Thank you for your reply

designhazard
05-13-2003, 12:43 PM
if you want a buttoned close button script, here's the script:
<input type="button" value="Close window" onClick="window.close()">