set focus on load javascript code example
Example: set focus on load javascript
function setup() {
document.getElementById("name1").focus();
}
window.addEventListener('load', setup, false);
function setup() {
document.getElementById("name1").focus();
}
window.addEventListener('load', setup, false);