This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > October 2005 > Link a page to a certain section of another page?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Link a page to a certain section of another page?
JND1993

2005-10-10, 10:17 pm

Hi,
Thanks for any help. How do you go about linking a page so that when you click on the link it goes to a certain section of another page?

Jill
PeteC

2005-10-10, 10:17 pm

JND1993 wrote:
> Hi,
> Thanks for any help. How do you go about linking a page so that when
> you click on the link it goes to a certain section of another page?
>
> Jill


For lots of examples, Google for 'named anchors'

A quick example....

On the calling link, use

<a href="mysecondpage.html#jumptohere2">Go to Here on My Second Page</a>

In the page 'mysecondpage.htm', enter the named anchor, e.g.

<p>This is the previous text</p>
<a name="jumptohere2">This is where you will end up</a>
<p>Some subsequent text</p>


HTH,

Pete.
--
Peter Connolly
http://www.acutecomputing.co.uk
Derby
UK
Skype ID: acutecomputing


rilkesf

2005-10-10, 10:17 pm

In the target page, place the following code where you want the link to jump to:

<a name='jumphere'></a>

Then, on the referring page, add '#somename' to your link, so that it becomes
something like this:

<a href="yourpage.html#jumphere">link text here</a>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews