close a page with alert/message
Before the user can close a page, I would like to have a message come up that asks if this is really what they want to do. the page needs to stay open.
I got this, edited, from msdn
event.returnValue = "";
<body onbeforeunload="closeIt()" >
It works just fine, too well. I get the message when the user refreshes the page, something I do not want.
Also with the above, I don't like the alert message and would like to have it read differently. Suggestions on this...