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

320
Views
How to redirect to specific section of the third party web page?

Let's say I'm currently at "mehere.com" and if I click a button from there, I want the page to redirect to "gothere.com" then scroll down to the section that has id="rightHere". So I tried 2 different ways and both redirects to the page successfully, but does not scroll down to section. Page loads then stays at top of the screen.

// #1 Method
<button onclick="Redirect()">Click</button>

function Redirect() {
         window.location.href = "https://www.gothere.com#rightHere";
        }
// #2 Method
<button><a href="https://www.gothere.com#rightHere">Click</a></button>

Is there a alternative way to get screen to scroll down to specific specific section of the page with JavaScript?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Unfortunately there is no alternative way. We need the id to scroll to a specific part of the page.

The most ideal method for solving the problem;

<a href="https://www.gothere.com#rightHere">Click</a>

Also, you don't need to add a button tag, this is more ideal.

about 4 years ago · Juan Pablo Isaza Report
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!