javascript onfocus for any element code example
Example: focus js
focusMethod = function getFocus() {
document.getElementById("myTextField").focus();
}
focusMethod = function getFocus() {
document.getElementById("myTextField").focus();
}