cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlinking to an anchor on a different page

whoknows
Super User

Hi,

I know how to hyperlink to an anchor on the same page.  But how do hyperlink on a differnt page. 

Example, I have a some summary news event on my home page and i want to link them a particular section on teh Events page.

 

I have set up the anchor on the Event page, put it when i go to add the link, i see theEvent page and I link to it, but i do not see the anchor to get the visitor to the exact point that they need to be on th event page.  Otherwise they would start at the top of teh [page and have to scroll down to and fin dteh appropriate event.

 

Thanks

2 REPLIES 2

orchie
Grand Master

Hey Whoknows,

 

This is quite straight forward, for example if you have set up your anchor as follows on your events page;

 

 

<a name="hello" id="hello">Hello</a>

 

To link to it from another page you would simply use;

 

  

<a href="http://www.mywebsite.com/events.php#hello">Link Text</a>

 

So simply you add "#" then the anchor name after the page name in the link.

Does this make sense?

whoknows
Super User
Cool...sounds straighforward....will give it a go over the weekend...Thanks