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

173
Views
How can I cache HTML generated through javascript on the client's browser?

I have a few elements on my site that when clicked, generates content on the site using javascript, however, when the user navigates to another page on my site, and then goes back to the previous page, the content that was generated using javascript gets erased/reset. Some things are cached in the browser, such as user input on input-fields, checkboxes and so on, they remain cached, but content that was generated using javascript gets erased.

How can I cache the content that was generated using javascript, so it's remembered and restored when the user goes back to the page, similar to how their actions on the input checkboxes are remembered?

Is this possible to do natively? Caching client-side generated content in the browser as it's generated, or is this something I have to cache myself using sessionStorage/localStorage? Thank you in advance!

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!