Problem handling onclick event from a "reset" button
12-18-2003, 11:28 PM Changed my mind, I will try to do better in
the future. Didn't mean to offend anyone.  Here is the actual
code that I have:  <input class="formbutton" type="reset"
value="Clear" onclick="if(confirm('Stop Timer?'))stopTimer();"
name=Stop  So, now... when I click on the button, it confirms to
reset the timer. If I click cancel, it resets the form anyways.
If I change the type to button, it doesn't clear the form at
all. if I put in return false, still deletes the form if I click
on the cancel button.  Any suggestions would be appreciated :)
12-19-2003, 12:22 AM I suggest you read our posting guidelines
(http://www.codingforums.com/postguide.htm) - particularly the
bit about choosing an appropriate subject for your question.
Yours was particuarly innapropriate, because not only did you
not describe the problem, you used a cheap psychological tactic
to try to get people to look at it, and that's not fair.  So
that's why I changed it.  12