AvailabilityDOM Level 1 HTML Synopsisvoid focus( ); DescriptionThis method scrolls the document so the specified anchor or hyperlink is visible. If the element is a hyperlink and the browser allows hyperlinks to have keyboard focus, this method also gives keyboard focus to the element. |