Note: Gives focus to an element and fires the onFocus event handler. Syntax: document.getElementById("elementID").focus() document.all.elementID.focus() // IE only