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

329
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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