Autofocus Fields

by Francis 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>
autofocus.png


Browsers Support :
IE - 10.0+
Firefox - 4.0+
Safari - 4.0+
Chrome - 3.0+
Opera - 10.0+
Android - 3.0+

Tagged in:

873
like
1
dislike
0
mail
flag

You must LOGIN to add comments