Answers for "set focus on input field javascript"

13

set focus javascript

document.getElementById("ThingToSetFocusOn").focus();
Posted by: Guest on February-11-2020
1

set focus on input field javascript

window.onload=function(){
 document.getElementById("id_here").focus();
}
// id_here = put the id of the HTML element where you want to set focus.
Posted by: Guest on April-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language