C
chirs
Hi,
In a website
http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onclick.html
it says:
The following example shows the use of the onClick event handler to
offer users the chance to cancel the resetting of a from when clicking
on a Reset button.
Code:
<INPUT TYPE="RESET" onClick="return confirm('Are you sure?')">
I added an input box with this code in a form. But the reset button
always clear input box. What's wrong?
In a website
http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onclick.html
it says:
The following example shows the use of the onClick event handler to
offer users the chance to cancel the resetting of a from when clicking
on a Reset button.
Code:
<INPUT TYPE="RESET" onClick="return confirm('Are you sure?')">
I added an input box with this code in a form. But the reset button
always clear input box. What's wrong?