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

280
Views
JavaScript: actualice la página después de enviar el formulario y vuelva a su URL personalizada

Esta es mi URL base: dominio.com/home/lesson/title_lesson/5

debajo de la URL anterior tengo la pestaña de navegación:

tabulador1 tabulador2 tabulador3 tabulador4

  • tab1: dominio.com/home/leccion/titulo_leccion/5

  • tab2: dominio.com/home/leccion/titulo_leccion/5#tab2

  • tab3: dominio.com/home/leccion/titulo_leccion/5#tab3

  • tab4: dominio.com/home/leccion/titulo_leccion/5#tab4

Cuando cambio a tab2 y envío el formulario desde aquí, necesito volver a cargar esta página.

Para esto uso script:

 <script> document.getElementById("form_create_domain").onsubmit = function(){ location.reload(true); } </script>

Entonces el problema es que este script se vuelve a cargar y vuelve a la primera pestaña. Cómo recargar y permanecer en la URL de la pestaña domain.com/home/lesson/title_lesson/5#tab2

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!