I
Iain Adams
Hey I have a confirm box that is invoked when the submit button is
pressed.
i.e onClick="ConfirmationBox()"
then I have a javascript function like so
function ConfirmationBox()
{
var confirmBox = confirm("Do you want to proceed?");
if(confirmBox)
{
//proceed to form action page
}
else
{
//dont do anything
}
}
Okay so when I click the OK button on the confirmation box i want it to
proceed. If the cancel button is pressed I dont want it to do anything.
Basically if cancel is pressed the box disappears and the page that the
box was invoked from remains, unchanged. How do i do this?? I have
tried returning true/false etc.
pressed.
i.e onClick="ConfirmationBox()"
then I have a javascript function like so
function ConfirmationBox()
{
var confirmBox = confirm("Do you want to proceed?");
if(confirmBox)
{
//proceed to form action page
}
else
{
//dont do anything
}
}
Okay so when I click the OK button on the confirmation box i want it to
proceed. If the cancel button is pressed I dont want it to do anything.
Basically if cancel is pressed the box disappears and the page that the
box was invoked from remains, unchanged. How do i do this?? I have
tried returning true/false etc.