Form JavaScript Tutorial

The focus() method gives focus to the text box.


    
    
    
    
    
    
    


    
      
                   onClick="setFocus(1)">
      

      
                   onClick="setFocus(2)">