Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
How to get previously focused input type text and then focus it

Result:https://goodapps.w3spaces.com/tablecalc.html

I am creating a app called Aswin's TableCalc in html and I captured an issue.

I was using document.activelement to get to the active element, but when the Do calculation button is clicked the previous selcted input gets out of focus. I need to get the input that was focused before it got out of focus so that it could copy the calculation that it did from the function bar into the input that was focused.

I figured put there was a dom method called focus() to focus an element.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda