function submit form javascript code example
Example 1: javascript submit form
document.forms["myform"].submit();
Example 2: javascript do not submit form
alert("hello world");
alert("it is a test");
document.forms["myform"].submit();
alert("hello world");
alert("it is a test");