Autofocus Fields
by Francis[ Edit ] 2013-03-12 11:39:50
Autofocus Fields
HTML5 introduces an autofocus attribute on all web form controls. As soon as the page loads, it moves the input focus to a particular input field.
<form>
<input name="q">
<input name="sec" autofocus>
<input type="submit" value="Find">
</form>
Browsers Support :
IE - 10.0+
Firefox - 4.0+
Safari - 4.0+
Chrome - 3.0+
Opera - 10.0+
Android - 3.0+