Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda