Welcome to WebmasterWorld Guest from 3.85.214.0

Forum Moderators: open

Message Too Old, No Replies

Linking to an Anchor on another page

     
9:09 pm on Feb 7, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 26, 2004
posts:778
votes: 1


To those of you who are really good at writing code this is probably a simple question. I want to create a link from one page to another, which is easy, but I want to create the link so that you go right to the anchor on the other page and hence the specific piece of information I want the person to see.

On my site I have a title to a seminar I do and the full write up is actually on another page near the bottom (its own paragraph) I want a user to click on the link off the home page and not only go to the page with the info on it, but also directly to that paragraph with an anchor.

Does anyone know one if this is possible and two what the code snippet would look like to do this.

Fortune Hunter

9:24 pm on Feb 7, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 31, 2005
posts:1108
votes: 0


<a href="pagename.hml#anchor">link text</a>
10:05 pm on Feb 7, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


. . . which links to
<a name="anchor" id="anchor"></a>
Here, on the page.
3:20 am on Feb 8, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 26, 2004
posts:778
votes: 1


Thank you guys, that is exactly what I was looking for, just tried it out and it works great. I love posting questions here with so many knowledgable people!

Fortune Hunter