'focus()' Syntax, Parameters and Note : focus « Javascript Methods « JavaScript Reference

'focus()' Syntax, Parameters and Note

Note:

Gives focus to an element and fires the onFocus event handler.
    
Syntax:
    
document.getElementById("elementID").focus()
document.all.elementID.focus() // IE only

    

      
      








Related examples in the same category

1.'focus()' Example
2.'focus()' is applied to