I am messing around with onUnload and would like to know if there is a way to stop users from going to other pages if there were changes in the current page.
Like i change some field values and then click on something else (another page link) besides the Update Cart button, i would like to make it so that they get an Alert saying You made changes please click on Update Cart first and stop the redirection.
You can check it out at http://www.impressiondesign.com/deanes/ add something to the cart and then go to view cart, if you change something on the cart (quantity) and click on Products or any other links besides Update Cart button or Checkout button. I want it to stop the loading of the page and stay in that page.
Uh, no. MSN WebMessenger uses it, my router's html interface uses it, and most other web chat applications that log the user off once they've quit the page (including one I wrote).