Définir Focus JavaScript
document.getElementById("ThingToSetFocusOn").focus();
Pleasant Pigeon
document.getElementById("ThingToSetFocusOn").focus();
<!-- In order to do it, you need to assign a tabindex... -->
<div tabindex="0">Hello World</div>
focusMethod = function getFocus() {
document.getElementById("myTextField").focus();
}