0 / 60 seg.

¿Qué evento se dispara cuando un elemento HTML obtiene el foco?

<input type="text" id="miInput">
document.getElementById("miInput").addEventListener('_____', function(){
  console.log("El elemento tiene el foco");
});