We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

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,