Results 1 to 9 of 9
Thread: close a page with alert/message
Mar 28, 2007, 15:47 #1
- Join Date
- May 2005
- 0 Post(s)
- 0 Thread(s)
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...