<script type="text/javascript">
function confirmation()
{
alert(
"Please Confirm Before Proceeding !" +
"\n\n" +
"Display Name: " + document.forms["paypal"]["os0"].value +
"\n" +
"Donation Amount: $" + document.forms["paypal"]["amount"].value +
"\n\n" +
"Click Ok to Proceed or Cancel to Make Changes."
)
}
</script>
Ok, here's what I would like done if someone could help me with it I'd appreciate it.
First though JS is not my strong suit and the above code is something I found at the W3School site or whatever it is. I would also add that I couldnt find anything to help me with what I'm after which is why I'm here.
What I would like to do if possible is add a Cancel button to the alert box that when clicked cancels the form submission it's attached to and keeps the user on the current page to modify the data they entered in to the form should they want to change it. As it stands, all there is is an Ok button and if you click the red x in the corner it acts as if you clicked ok so if a user wanted to change their form data they'd have to close the browser to start again.
Aside from liking to add a cancel button I would also like to if possible change the alerts Ok button to read something different. Not sure yet, thinking either Submit or Proceed.
Other than that, this seems to function the way I want.
Thx in advance.