Name

Anchor.focus( ): scroll to make the anchor location visible — DOM Level 0:

Synopsis

void focus( );

Description

This method scrolls the document so the location of the Anchor object is visible.

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.