Revision history [back]

click to hide/show revision 1
initial version

answered 2009-05-19 08:11:50 +0800

dennis gravatar image dennis

http://www.javaworld.com....

sousa, after search on the google with key word "cancel beforeunload", I found, the return value of a function which register to beforeunload must be a String, this stirng is for displaying a confirm message to user by Browser. you have no way to cancel it, and also no possible to replace with your logic.(showMsg in your code) So It is not possible to sent a event back to event to server if user decide to close/refresh the tab.

This is browser restriction...

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More