Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!