Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.close( ) event

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
0
0
US
is it possible to trigger an event on window.close(). something like when the user clicks on the X bar on the menu to close the browser. i did something like this before but forgot how i did.
thanks for the help in advance...
 
<script>
function tricky_win_close() {
window.opener = top;
window.close();
}
</script>
<script>
tricky_win_close();
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top