JavaScript Selecione o texto de entrada no foco
focusMethod = function getFocus() {
document.getElementById("myTextField").focus(); //select the input textfield and set the focus on it
}
Tartaud