how to set focus on a div in javascript code example Example: set focus javascript document.getElementById("ThingToSetFocusOn").focus();