mardi 28 janvier 2020

put cursor at end of text in prompt with default value

When calling window.prompt() with default value text current is selected, is there the way to unselect the text and put cursor at end.


prompt("Prompt with default value", "Default")

enter image description here

I also checked https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt but nothing useful came out.




Aucun commentaire:

Enregistrer un commentaire