This sort of client-side work requires having your JSP include JavaScript on the page.
-----Original Message----- From: sanjib B [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: Leaving the JSP page Hi All, In my JSP page I have some editable fields which the user can edit but before applying those changes to database updates, if the user clicks some other link or wants to leave the page I want to prevent the user from doing so and wnats to show a message box. If the user presses "Ok" and want to discard the previous edits then only I want to allow the user to leave the page. How do I do so? any idea ?? thanks sanjib =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com