Give a warning when closing

Results 1 to 2 of 2

Thread: Give a warning when closing

  1. #1
    bmurray Guest

    Default Give a warning when closing

    Is there any code that you can add so that when someone clicks the close button on internet explorer, that you can have a message box come up and ask the user if they saved their information?

  2. #2
    Eddie Campbell Guest

    Default RE: Give a warning when closing

    Try something like this:<BR>&#060;body&#062;<BR>&#060;script FOR="Window" EVENT="onBeforeUnload" LANGUAGE="VBScript"&#062;<BR> window.event.returnValue = "Have you saved your changes? Click OK to carry on or cancel to return to the page."<BR>&#060;/script&#062;<BR>&#060;/body&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts