Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Posts
    32

    Cool Unanswered: save/submit on close prompt

    Hello,
    I'm creating a web application using PHP and some embedded Java Script. The end user has requested a prompt to save changes when the window is closed or the page is navigated away from. I know that this is not possible with PHP but I am hoping someone can lead me in the right direction with some Java Script that will do this.

    Cheers
    Tim

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    JavaScript <> Java

    JavaScripts Events Page at w3schools
    HTML Code:
    <body onunload="alert('The onunload event was triggered')">
    </body> 
    George
    Home | Blog

Posting Permissions

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