Skip to content

JavaScript Form

1. How do you submit a form using JavaScript

JS
function submit() {
  document.forms[0].submit();
}