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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect browser closing

Status
Not open for further replies.

REMOVE

Programmer
Jan 23, 2002
1
US
I need to open a confirmation page when the user closes a form page.

How do I do this that would work both for Netscape and IE?
 
I think in either if you throw an On_close(or just onclose)="Javascript:thecommand".... something along those lines.
 

Do you want to send the user to a confirmation page when the user closes a window? If so, you can open the confirmation page in a new window using onUnLoad:

<body onUnLoad=&quot;window.open('confirmation.html');&quot;>

A warning though: many people reflexively close these annoying windows on sight.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top