-2

I'm trying to make an app to do some calculating to the input number that i enter, i want the website to select the input field to enter the values as soon as website loads.

to make it clearer, I want the field selected by default and ready to type and don't have to select the field with mouse click.

fevid
  • 723
  • 6
  • 18

1 Answers1

0

HTML 5 inputs support the autofocus attribute :

<input type="text" autofocus>

https://www.w3schools.com/tags/att_input_autofocus.asp

Jeremy Thille
  • 26,047
  • 12
  • 43
  • 63