|
Hi All,
Iam checking out whether the user is closing the Browser Window.
If yes then Iam firing on window.unbeforeunload event and display a webpage dialog box him to save or cancel.
But when I click on the cancel button, It closes the window. Then I was looking in there is a window.event.returnValue = "". which fires this one.
I would like to disable the default Internet Explorer Message Box by using javascript.
Which says like this.
"Are you sure you want to navigate away from this page?"
Press OK to continue or Cancel to stay on the current page.
window.onbeforeunload
Thanks in advance
|
|
|
|
|
|
|
|