Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to link to the middle of someone else's page even if they don't have an anchor?

...something along the lines of telling the browser which percent of the page to center to?

like image 319
EpsilonVector Avatar asked Feb 16 '11 15:02

EpsilonVector


People also ask

Can you hyperlink to a specific part of a Web page?

Select a portion of the text on the webpage, right-click and click on “Copy Link to Selected Text”. It will generate a link and automatically copy it on the clipboard.

How do I link a section to another page in HTML?

You can use anchor ( <a> ) links in HTML to link to a different page or a different website.


1 Answers

Yes you can. If the person has an element with an ID anywhere on the page. For example:

<div id="someId"></div>

Then you can create a link to this page like:

<a href="http://somePage.com#someId">Middle!</a>

The only thing you need to do is choose an Id in the middle.

like image 89
Matthew Manela Avatar answered Sep 21 '22 08:09

Matthew Manela