var nextpage = window.confirm("Are you sure you want to change the page");
window.confirm() returns true if user clicks OK button. it returns false if
cancel button is pressed.
you can check nextpage variable to take your decision.

Good luck.

Aparna


-----Original Message-----
From: Sanika Kapoor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 18, 2000 2:48 PM
To: [EMAIL PROTECTED]
Subject: Off topic :: JSP-JavaScript


Hi everyone,
I am sorry to ask off-topic question.
Can pl. anyone help me in this:
I want to store the value of Javascript confirmation box in a JSP variable
and based on that I want to invoke my other page.
Actually I am making the JSP page to modify a record, I want to display a
confirmation box to the user, if he clicks "Yes" then only I want to invoke
my next page.

TIA
Sanika.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to