First name: . enctype If the value of the method attribute is post, enctype is the MIME type of the form submission. In this tutorial, we illustrate you an example, which shows how to set J avaScript form action.Sometimes developers want to set form action attribute of a form through programming or through other means. Description A form is useless unless some kind of processing takes place after the form is submitted. The action attribute of the FORM tag provides the URL of the program (which is in the server) that receives the information from the form and processes it. Action is used to give reference/link of another page. The HTML form action attribute defines where to send the form data when a form is submitted in an HTML document. The HTML | action Attribute is used to specify where the formdata is to be sent to the server after submission of the form. The form data is sent with the HTTP POST method. Live Demo This value can be overridden by a formaction attribute on a