JavaScript DOM HTML method: focus()
[this page | pdf | back links]
The focus() method (when applied to HTML elements
in the JavaScript
DOM) gives
focus to the element.
 
It
has the following syntax with no parameters. It does not return a value.
 
element.focus()
 
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)