Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

179
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda