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

101
Views
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 answers
Answer question

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