Link to specific spot
Hi folks.
Just wanted to know the code for linking to a specific spot on another page.
In other words...how do you link to another page...but halfway down that page where the referred content begins.
Thanks in advance for any help.
Tim R
Maverick posted this at 18:39 — 29th January 2000.
They have: 334 posts
Joined: Dec 1999
You place an anchor tag where you want the link to go to.
For example, you place this tag in the middle of the document:
<A NAME="middle"></A>
That sets the anchor. Then you link to it like follows:
<A HREF="#middle"> or, if it's on another page<A HREF="pagename.htm#middle">
Just remember to keep the # in the link tag. That denotes that it's linking to an anchor within the page and not to the page itself.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.