What is the best way to get an element to focus as soon as the page loads
What is the best way to get an element to focus as soon as the page loads
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">