+ 1
autofocus
hello! how to put autofocus on textbox in html? thanks
1 Odpowiedź
+ 2
Simply put the "autofocus" keyword in one <input> tag:
<input type="textbox" autofocus>
Not tested behaviour in case of multiple elements with autofocus ( not logical: autofocus define focus on load, and focus cannot be set on multiple elements )...
WARNING: autofocus attribute is only valid in html5, so require an html5 doctype ^^