If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > save/submit on close prompt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-07, 20:58
tmccollum tmccollum is offline
Registered User
 
Join Date: Nov 2004
Posts: 32
Cool 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
Reply With Quote
  #2 (permalink)  
Old 03-21-07, 05:42
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
JavaScript <> Java

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On