mozilla
Your Search Results

    Element.focus

    « Element

    The HTMLElement.focus() method sets focus on the specified element, if it can be focused.

    Syntax

    element.focus()

    Specification

    Specification Status Comment
    WHATWG HTML Living Standard Living Standard  
    HTML5.1 (draft) Working Draft  
    HTML5 Candidate Recommendation  
    Document Object Model (DOM) Level 2 HTML Specification Recommendation  
    Document Object Model (DOM) Level 1 Specification Recommendation  

    See also

    Document Tags and Contributors

    Contributors to this page: teoli
    Last updated by: teoli,