how to submit a form directly as page using javascript code example Example: javascript submit form document.getElementById("myForm").submit();