Below is a sample form structure:
<html>
<head>
<title>My Page</title>
</head>
<body>
<form name="myform" action="http://www.abcdefg.com/my.cgi" method="POST">
<div align="center">
<br><br;
<br><input type="submit" value="ABC" tabindex=0><br>
<br><input type="button" value="cancel"><br>
</div>
</form>
</body>
</html>
I am looking to modify the form behavior so that it submits when the ENTER key is pressed, and I want the submit button to have a visible indication of being the default option.
Currently, I need to use the tab button to highlight the submit button in blue as the default. Is there a way to make this happen automatically without needing to use the tab button?
In addition, if there are other input fields on the page outside of the form, I would like the form to still submit when the ENTER key is pressed regardless of where my cursor is positioned. Is there a solution for achieving this functionality?