Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a page to a particular point

Status
Not open for further replies.

Coogan

Programmer
Jun 21, 2004
38
GB
Hi Folks,

I need some help with some thing that is probably quite basic!

I have a page that contains images. On another page I have details that relate to each of those images. What I want to do is when I click on an image I want to open the details page and get it to go to a particular point on that page.

I know that this can be done if all the details are on the same page by using DIV. Is what I want possible??

Thanks

Martin
 
Use named anchors in your page and add them to the link calling the page.

e.g.
I have a section on myPage.html called "Fishing".

I create an anchor at that point in the page like so:
Code:
<a name="Fishing" id="Fishing"></a>

Then in the link that's calling that page/section add the anchor to the end of the URL.

Code:
<a href="myPage.html#Fishing>My Link to Fishing</a>

When a user clicks that link, it will go to myPage.html and jump to the named anchor, "Fishing".

"I'm making time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top