0

autofocus

i can't understand the concept of autofocus. What's need to use it.

15th Feb 2017, 6:21 PM
Yuvraj Yadav
Yuvraj Yadav - avatar
1 Odpowiedź
+ 1
An <input> element wich get the "focus" is the "active" element ( receiving keyboard entries... ). Attribute "autofocus" can be only set on once <form> child element of type input ( <button> <input> <keygen> <select> <textarea> ) and, if present, give the focus to this element when the page load.
15th Feb 2017, 6:46 PM
visph
visph - avatar