how to submit a submit button in javascrip code example Example: javascript submit form document.forms["myform"].submit();