Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.
 
PREVIOUS NEXT
Tagged: #set #focus #input #field #javascript
ADD COMMENT
Topic
Name
2+8 =