how to activate the submit function on an input in javascript code example Example: how to submit a form in js document.forms["myform"].submit();