The focus() method places focus on the Submit button.
<html> <head> <script language="JavaScript"> <!-- function setFocus(){ document.myForm.mySubmit.focus(); } --> </script> </head> <body> <form name="myForm"> <input type=TEXT value="Hello, World!" name="myText" onFocus="setFocus()"> <input type=SUBMIT value="Submit" name="mySubmit"> </form> </body> </html>