The following should work:
<input type="button" id="cancelButton" value="Cancel"
onclick="location.href='Page1';"/>
Hope this helps!
[EMAIL PROTECTED] wrote:
I have a form on a page and I have two buttons: Submit and Cancel. I
have handlers for both. However, because I need two of the fields to
be required, the client side checking never allows my handlers to be
called if no values are inserted in the fields and the user presses
Cancel.
How do you achieve the Cancel functionality with required fields?
thanks,
p.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]