element) which has the type attribute set to button (i.e. Live Demo First we write HTML markup. To submit form to new window, we set the target attrubutes to ‘_blank’. A form is also known as a web form or HTML form. The onsubmit event occurs when you try to submit a form. Perform action after form submit. Call a javascript function on submit form. Forms in javascript are used to take the selective or required information from the user. Use the ‘id’ of the form to get the form object. Here are ways of executing a javascript function on form submit without reload the html page. Use an HTML form instead of a web form. However, sometimes, you may need to submit the form programmatically using JavaScript. The code inside the