The first parameter is the Customer object that holds the values entered in the textboxes. Here, we are validating the form on form submit. to perform form action link to another page we have HTML Form and its Action Attribute add link to submit button html. Event: submit. Live Demo