Name

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

Synopsis

void focus( );

Description

This method transfers keyboard focus to this element so the user can edit the displayed text without having to first click on the text area.

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.