change focus using js code example Example: focus js focusMethod = function getFocus() { document.getElementById("myButton").focus(); }