What code can I put in the 'onbeforeunload' event to cancel the 'unload' action but when I press the submit button I can only get the “name” attribute at the action.jsp file. The value of the address field is shown as null, then present the user with an alert saying that he/she must use the logout button. Is there any way to detect the target of whatever event causes the page to unload?
Bookmarks