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

271
Views
JavaScript - refresh page after submit form and back tu custom url

This is my base url: domain.com/home/lesson/title_lesson/5

under above url I have navigation tab:

tab1 tab2 tab3 tab4

  • tab1: domain.com/home/lesson/title_lesson/5

  • tab2: domain.com/home/lesson/title_lesson/5#tab2

  • tab3: domain.com/home/lesson/title_lesson/5#tab3

  • tab4: domain.com/home/lesson/title_lesson/5#tab4

When I switch to tab2 and submit form from here I need to reload this page.

For this I use script:

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

Then problem is this script reload and back to first tab. How to reload and stay to tab url 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!