Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-06-2007, 03:24 AM   PM User | #1
rob86
New Coder

 
Join Date: May 2007
Location: MI USA
Posts: 54
Thanks: 18
Thanked 1 Time in 1 Post
rob86 is an unknown quantity at this point
link to an anchor

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/calen...tober2007.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.
rob86 is offline   Reply With Quote
Old 10-06-2007, 04:41 AM   PM User | #2
vtjustinb
Regular Coder

 
Join Date: Sep 2007
Location: Raleigh, NC
Posts: 273
Thanks: 7
Thanked 59 Times in 52 Posts
vtjustinb is on a distinguished road
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.
vtjustinb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:14 AM.


Advertisement
Log in to turn off these ads.