View Full Version : link to an anchor

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:

shows the target link as:

Page 2
The anchor <a name="tops"><h3>T.O.P.S.</h3></a> is on page below:

Thanks to all who help.

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