What is the method used to submit forms in JavaScript? code example Example: how to submit a form in js document.forms["myform"].submit();