HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

autofocus

Description

The autofocus of HTMLOrSVGElement for JS allows the author to indicate that an element is to be focused as soon as the page is loaded, allowing the user to just start typing without having to manually focus the main element.

Syntax

element.autofocus

Examples

1 · get

2 · set