You can submit a form using document.forms[0].submit(). All the form input's information is submitted using onsubmit event handler
document.forms[0].submit()
function submit() { document.forms[0].submit(); }