0
it is possible to define where the cursor will look as soon as the user enters a screen ?
For example, I have this input, as I define that whenever the screen is logged in or loaded, the cursor is in this input:
<input id="itemsearch" placeholder="Pesquisar" aria-label="Search">
Thank you
Determining the mouse position on the screen is not possible. Use the attribute
autofocus
in your input element to give it a focus when the page is loaded, it would look like this<input id="itemsearch" placeholder="Pesquisar" aria-label="Search" autofocus>
or depending on what you’re doing use the Javascript functionfocus()
in the specified element, this will give the same result.– user170164
@leandrodonascimento is exactly that, thank you very much for the help.
– Rodolfo Sousa