The autofocus Attribute

The autofocus Attribute

//let the "First name" input field automatically get focus when the page loads

First name:<input type="text" name="fname" autofocus>

Specifies that the input field should automatically get focus when the page loads.

Related concepts

The autofocus Attribute — Structure map

Clickable & Draggable!

The autofocus Attribute — Related pages: