By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,053 Members | 922 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,053 IT Pros & Developers. It's quick & easy.

Recognising Browser refresh event and preventing to call save action

P: 6
In my application, on one form i m getting information from user and save this information , after saving this information again we loading that page. (At this moment if any one try to refresh this page, then save action will call) this should not be happen. only data will save , when we click on the save button.
Why every refresh save action getting call and what is solution on this problem?
Is there any javascript method available to recognise browser refresh event and preventing to call this save action.
Pls help me.

Mar 21 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,208
you need to check if the data for that particular user is already saved.
Mar 21 '07 #2

P: 2,476
try ...

window.onbeforeunload = event_handler_ref
Mar 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.