How do I get a browser to go to a specific part of a page?
You have probably noticed that on many of my pages, that if
you select certain links, such as to my CGI-BIN page, that you
wind up looking right at what it was I was telling you about. The
secret to this are the
the <A NAME="anchor_name"></A> tags.
Before I show you the exact code to do this, let's just take a
fast look at a full URL: (port ommitted since rarely used)
http://www.bignosebird.com/docs/h17.html#TOP
This URL tells the browser the following:
This is a HTML document request
The document can be found at the www.bignosebird.com domain
It is located in the docs directory under its root directory
It's name is h17.html (this document in fact)
Position the top of the screen at a location called TOP
How to do it:
Here is a menu presenting three navigation choices on this page.
Go ahead and give it a try. This section is called the "How To"
so you can find your way back again.
<A HREF="#TOP">Go to top of page</A><BR>
<A HREF="#MIDDLE">Go to middle of page</A><BR>
<A HREF="#BOTTOM">Go to bottom of page</A><BR>
I also had to place the following tags in my document. The best
way to see them is to view the actual document source with your
browser. You will see some rather large gaps created using
the <PRE> tags.
Final Note: To address a specific point on any page- just
place the <A NAME=> tag in the target document. Create a link
in the calling menu that corresponds to the anchor tag your
created. Try it!