Focus when starting the page


What is the best way to get an element to focus as soon as the page loads

asked by anonymous 25.08.2016 / 15:59

1 answer


You can use an html feature called autofocus

<input autofocus type="text" name="Com Foco" placeholder="Com foco">

<input type="text" name"Sem foco" placeholder="Sem foco">
25.08.2016 / 16:04