|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi i have seen this done on a few sites for long documents to be able to click on a hyperlink and be taken straight to the part of the document that it relates to , can any one tell me how this is done?
|
|
#2
|
|||
|
|||
|
marcus of exley,
Linking within a page is not done with JavaScript, it is done with plain old HTML. At the top of a page, you may want to have a link to part of that page, possibly near the bottom (an "anchor"). For the link at top, simply use this format: <A HREF="(NameOfPage)#(NameOfAnchor)">your link</A> For (NameOfPage), use the name of this web page (ex: index.tml). For (NameOfAnchor), choose a name for this anchor at the bottom. At the bottom (where you want the link to point to), include this tag: <A NAME="(NameOfAnchor)">text</A> For (NameOfAnchor), use the same anchor name that you used above (for the link). You can have more than one anchor (and link) on a page by using various names for your anchors. Good Luck! yoshi datera@datera.com http://www.datera.com [This message has been edited by yoshi (edited July 06, 2000).] [This message has been edited by yoshi (edited July 06, 2000).] |
|
#3
|
|||
|
|||
|
Hi Yoshi,
If you had two frames, how can you move a page up and down to where you want from another frame? Kind of like the feature you talked about but controlling from another frame(without reloading the page). Thanks in advance, jon <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by yoshi: marcus of exley, Linking within a page is not done with JavaScript, it is done with plain old HTML. At the top of a page, you may want to have a link to part of that page, possibly near the bottom (an "anchor"). For the link at top, simply use this format: <A HREF="(NameOfPage)#(NameOfAnchor)">your link</A> For (NameOfPage), use the name of this web page (ex: index.tml). For (NameOfAnchor), choose a name for this anchor at the bottom. At the bottom (where you want the link to point to), include this tag: <A NAME="(NameOfAnchor)">text</A> For (NameOfAnchor), use the same anchor name that you used above (for the link). You can have more than one anchor (and link) on a page by using various names for your anchors. Good Luck! yoshi datera@datera.com http://www.datera.com [This message has been edited by yoshi (edited July 06, 2000).] [This message has been edited by yoshi (edited July 06, 2000).][/quote] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Linking to a specific part of a web page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|