PDA

View Full Version : Linking to an anchor point on another page?


DWnoob
04-24-2012, 05:56 PM
Say you have Page A and Page B.

Can you have an image on Page B that when clicked will link you to a specific anchor point, somewhere halfway down the page for example, on Page A?

thanks

gentleone
04-24-2012, 11:19 PM
Give the element or tag where you want page B to open an ID and link from page A to that ID:

element on page B:

<div id="target">

<p>content</p>

</div>


link on page A:
<a href="pageB.html#target">link</a>