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

149
Visualizações
How to get the user back to the exact same place after reloading the page

I have a card elements on my website. The card has a custom length containing various sized photos and comments and there is a submit button at the bottom.The whole thing looks like this:

enter image description here

There is a problem of the user returning to the same place after reloading the page (after press button submit). If it sends it to a specific ID, it might look like it has come back elsewhere. Below is another card, above is another one. Is there any simple way of using JS or jQuery to get the user back to the same place (exactly the same)? For example by saving down its height from the top and loading it when the user comes back for responses from the server?

The HTML code looks like this:

<!-- loop for card in cards -->
<div class="card" id="{{ card.id }}">
  <img id="img">
  <div id="comments"></div>
  <form method="POST">
    {% csrf_token %}
    <button type="submit">I Like this topic</button>
  </form>
</div>
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