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 do you control someone from closing your program?

Status
Not open for further replies.

f1car

Technical User
Apr 2, 2001
69
US
How do you control someone from closing your program?

Thank you.
 
If you're asking how to keep someone from closing the browser window -- you can't.

It's a security feature of the browser that the programmer has no control over a user's perogative to close any browser window they wish at any time.
penny.gif
penny.gif
 
You could capture the window's onunload or onberforeunload event to run some code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top