...

View Full Version : link to an anchor



rob86
10-06-2007, 03:24 AM
I can not get a link on page 1 to go to an anchor on page 2.

Page 1
T.O.P.S. on the calendar link:
http://melendy-mi.us/spartaumc/calendar_pad/October2007.html

shows the target link as:
http://melendy-mi.us/spartaumc/com_groups.html#tops


Page 2
The anchor <a name="tops"><h3>T.O.P.S.</h3></a> is on page below:
http://melendy-mi.us/spartaumc/com_groups.html


Thanks to all who help.

vtjustinb
10-06-2007, 04:41 AM
Try just giving something an id and referencing that in the link:

Page 1:

<a href="page2.html#section-1">Click here to go to Section 1</a>

Page 2:

<h2 id="section-1">Section 1</h2>

This also gives you the flexibility of targeting any type of element you want without requiring a superfluous anchor tag.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum