<html>
<body>
<form id="form1" method="post" action="javascript:console.log('Submitted')">
<label for="txtName">Name:</label><br />
<input type="text" id="txtName" name="txtName" /><br />
<input type="button" value="Submit Form" onclick="document.forms[0].submit()" />
</form>
</body>
</html>