suppose when user click on edit button, he should not be allowed to go any of hyperlinks or tabs or any other other page. after clicking save or close buttons he shold be allowed to move. even though if tries to click on any hyperlinks or tabs he shold get an alert message to make changes or not. just as MS-word if open blank document n click on close it will ask u for save. aspnet c# web application
sasindagi 0 Newbie Poster
Recommended Answers
Jump to PostYou will need to set an onchange or onkeydown event in all of your editable controls to set a global dirty flag. Check this flag in the window.onbeforeunload event and simply return a string to it, the browser will do the rest.
<html> <head> <script type="text/javascript"> var …
All 2 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.