first, you have to suppress the standard submit button by setting the switch has_submit to 1 (!).
then you can insert a button widget like this:
{mysubmit:text(submit) {mylabel "mylabel"} {html {onclick "alert('yeah');"}} }