Forum Moderators: open

Message Too Old, No Replies

Closing a browser

         

shoreman

12:08 pm on Mar 5, 2002 (gmt 0)

10+ Year Member



Is it possible to close a browser using HTML or PHP?

BlobFisk

2:08 pm on Mar 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not pure HTML.... but a little JavaScript does the trick.


<a href="javascript:window.close()">Close</a>

You should note that the browser will warn the user that you are trying to close their window and give the user a choice. This is not the case if it is a window spawned by JavaScript in the first place.

HTH