DekGenius.com
Team LiB   Previous Section   Next Section
HTMLAnchorElement.focus( ) make a link or anchor visible and give it keyboard focus

Availability

DOM Level 1 HTML

Synopsis

void focus(  );

Description

This 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.

    Team LiB   Previous Section   Next Section