how to submit a html form using javascript code example Example: javascript submit a form document.getElementById("myFormID").submit();