Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnBeforeUnload event

Status
Not open for further replies.

rcodarini

Programmer
Jul 3, 2001
8
IT
Hi!

I've a very big problem: I've a data entry web application on a browser and I want, when the user close the browser, to ask him the standard messagebox Yes, No, Cancel to save if the current record is modified.

So Yes and No correctly goes but for the Cancel button I've add a code as event.returnValue = false and the explorer show me first my messagebox with the three buttons and than an other message box with the buttons OK and Cancel and prompt me false (is the value of returnValue).

Do you know solutions?

Thank's
ROb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top