Name

Select.focus( ): give keyboard focus to this element — DOM Level 2 HTML

Synopsis

void focus( );

Description

This method transfers keyboard focus to this <select> element so the user can interact with it using the keyboard instead of the mouse.

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.