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

135
Visualizações
JavaScripts return back to filtered page with onclick method

Actually, I have a list datatable on one page which is filtered, when I choose one data from there it will go to another page for detail. I have a button back with the method onclick="window.history.go(-1); return false;" it will return to filtered datatable. But when I click submit then the detail page reloads after that, I can't click that button back to my filtered datatable.

So, here its how it works :

Case 1: Page with filtered datatable >> click one of them then it will process to page detail >> I don't click submit and just click the button back it will be back to the page with filtered datatable

Case 2: Page with filtered datatable >> click to process page detail -> click submit >> page detail reload after submit >> I can't click the button back to make it back to page with filtered datatable.

I tried to make two button back, button number one with onclick="window.history.go(-1); return false;" and button number two with onclick="window.history.go(-2); return false;" for assumption it will go back to page with filtered datatable when page detail reload.

My question is how to hide button number one after clicking submit -> page reload so button number two will show? How does it work?

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