How would one go about making a link that leads to a different part of a page?
(example: at the bottom of a page you click top to return to the top of the page, without actually reloading the page)
Help is appreciated.
Question: Link to parts of a page
Started by skilletsteve, Aug 29 2006 09:33 AM
3 replies to this topic
#1
Posted 29 August 2006 - 09:33 AM
|
|
|
#2
Posted 29 August 2006 - 10:53 AM
Ok here is the code:-
Explanation:
Lets say that instead of all those <br> there is your site content etc... make
on the top ( or where you want to return )
and make the
at the bottom or so then when you click the Go to the Top you will be taken to the top!
Hope this helps :)
<html> <a name="GotoTop"></a>Here is the Top</p> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> <a href="#GotoTop">Go to the Top</a></p> </html>
Explanation:
Lets say that instead of all those <br> there is your site content etc... make
<a name="GotoTop"></a>Here is the Top</p>
on the top ( or where you want to return )
and make the
<a href="#GotoTop">Go to the Top</a></p>
at the bottom or so then when you click the Go to the Top you will be taken to the top!
Hope this helps :)
#3
Posted 29 August 2006 - 11:07 AM
Allright, so if I understand correctly, a name can be any variable at any place on the page, then from any other link on the page it will go to there. Do I understand correctly?
#4
Posted 29 August 2006 - 12:15 PM
Yeah just set a name insted of
<a name="GotoTop">
GotoTop can be ANYTHING
and thn call it from another link by making
<a href="#GotoTop">
ok? hope this helped!
<a name="GotoTop">
GotoTop can be ANYTHING
and thn call it from another link by making
<a href="#GotoTop">
ok? hope this helped!


Sign In
Create Account


Back to top









