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!

On browser close

Status
Not open for further replies.

smellykat

Programmer
Mar 4, 2002
33
US
I am trying to figure out if there is a way that when the user hits 'X' to close the browser, some values can be passed and a new function is called. Basically I want to save the info the user has entered before they close the browser. I want to open up a new window when the user closes the browser.
 
you can put the function into the onunload event in the body tag. There is no way to check for the X being clicked but if you use this then no matter how the window is closed the finction will be run. You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top