You did not specify: "
onclick
" of what element? Anyway, you did not provide any code sample, so what would you expect? Chances are, you rather need to handle a different event,
onsubmit
:
http://www.w3schools.com/jsref/event_form_onsubmit.asp[
^].
However,
onclick
event certainly works, no doubt. I don't know how exactly could you screw up it, but it might happen. :-)
—SA