onsubmit javascript code example Example: javascriptsubmit document.getElementById("myForm").submit();