![]() |
Navigation (hyper links) inside a webpage...?
Hi,
I'm working on a webpage which has a lot of information packed into it... I wanted to create a simple navigation inside the website, for example; ................................. This section deals with; Q1 (click to go to this section) Q2 (click to go to this section) ...... Heading: Q1 bla bla bla (click here to go back to top of the page) ..... Heading: Q2 bla bla bla (click here to go back to top of the page) (click here to go back to the top of the page) .......................... I have seen some javascript codes which are just unbelievable complicated and advanced, how can I do this with the simplest of codes? I appreciate your time, Thanks! |
This has nothing to do with Javascript.
Code:
<a name="pagetop"></a>To navigate to a different page:- Code:
<a href = "mypage2.html">Go To Page 2</a>All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit. |
I tried to use the above mentioned technique with a button;
Quote:
|
these should work if you have names the top section of the page.
at the top of the page put: Code:
<a name="pagetop"></a>Code:
<a href="#pagetop">Click here to return to the top of this page</a> |
Quote:
Thanks for your reply. |
As this is an anchor link you cannot use a button, but you can use an image:-
<p align="center"><a href="#pagetop"><img src="topPage.gif" width="54" height="29" border="0"></a></p> and at the top of the page put <a name="pagetop"></a> If you insist on a button you can make an image which looks just like a button. :) You can use a button to link to another page:- Code:
<form> |
Quote:
Quote:
|
Well that amounts to refreshing the page. Not exactly the same thing as moving to an anchor at the top of the page.
|
| All times are GMT +1. The time now is 12:21 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.