PDA

View Full Version : Form Reset Button


flash
10-17-2002, 03:11 PM
Hey.

I have a reset button on a form.
When the button is clicked, I want a popup box to show and ask if the user is sure they want to reset the form. If Yes or OK is clicked then the form resets, if NO or Cancel is clicked then the form does not reset.

Can anyone help me with this?

Thanks.

Flash

beetle
10-17-2002, 03:45 PM
<input type="reset" value="Reset" onClick="return confirm('Are you sure you want to reset?');">

flash
10-18-2002, 11:45 AM
Brilliant!

Thanks alot for that :thumbsup: