1 <html> 2 <body> 3 <input type="text" id="focus" /> 4 <script type="text/javascript"> 5 document.getElementById('focus').focus(); 6 </script> 7 </body> 8 </html> 9