Focus onLoad - You can put the user's cursor inside a text box (calling the text box' focus) on page load.
Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser
Example: View Code Demo
<html> <head> <title>Form Focus - HTML Code Snippet</title> </head> <body onLoad="document.snapfocus.user.focus();"> <p>You can put the user's cursor inside a text box (calling the text box' focus) as soon as the page is loaded. This helps ensure that visitors do not 'overlook' an important form item on your site.</p> <p>In the body of your document, add the following code snippet where you want the form focus to appear:</p> <p><form name="snapfocus">Name: <input type="text" name="user" size="20"></form></p> </body> </html>