In this example, the form name is ‘testform’. When the hyperlink “Submit” is clicked, the function submitform() is called. In the function, the method submit() is called. The form name ‘testform’ should be replaced as the form name you defined.
Here is the code to submit a form when a hyperlink Submit is clicked:
<form name="testform">Search: <input type="text" name="data" />