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

105
Vistas
link to a place in a locally-hosted website

I'm trying to have my locally-hosted website link to a specific id (inside the website) as follows:

<button onclick="location.href='http://127.0.0.1:5500/#projects'" 
onmouseover="onbutton(this)" onmouseout="offbutton(this)"
type="button">Projects</button>

However, it is not working (the url in my browser changes to 127.0.0.1:5500/#projects when clicked, but the hyperlink does not change which part of the page I'm looking at. I suspect it's because the ip is not a real url. Is there any way I can create a hyperlink to the id projects when my website is being locally hosted?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You could the button inside an <a> tag.

<a href="http://127.0.0.1:5500/#projects"><button
type="button">Projects</button></a>

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