<!DOCTYPE html>function formSubmit(){document.getElementById("frm1").submit();}Enter some text in the fields below, then press the "Submit form" button to submit the form.id="frm1" action="form_action.asp"First name: type="text" name="fname"Last name: type="text" name="lname"type="button" onclick="formSubmit()" value="Submit form"