<html> <head> <title>Submit Example</title> </head> <body> <form id="form1" method="post" action="javascript:alert('Submitted')"> <!-- regular textbox --> <label for="txtName">Name:</label><br /> <input type="text" id="txtName" name="txtName" /><br /> <!-- custom submit button --> <input type="button" value="Submit Form" onclick="document.forms[0].submit()" /> </form> </body> </html>