With JavaScript you can easily put the user’s cursor inside a text box as soon as the page is loaded (set focus onload). This helps ensure that visitors do not “overlook” an important form item on your site or you want to query many times without set focus tediously.
<html>
<body onLoad='document.getElementById("lastname").focus();'>
<form name="formName">
Name: <input type="text" name="name">
Last Name: <input type="text" name="lastname">
</form>
</body>
</html>
The focus always is on last name field on load the page.
Jorge Fernandes is Bachelor in Computer Science experienced in telecommunications, security, banking and programmer since 1984. He works in Valhala Networks focused on high-level decisions about scientific and technological policies and strategies of projects oriented to develop web and standalone applications, as well as smart solutions at mobiles. He always oriented to produce innovator products.