This content has been marked as final. Show 3 replies
> If you click on the anchor (1) it jumps to the bottom of the page but
> the "back to top" anchor does not jump back up to (1)?
> The code looks okay to me but I can't figure out why it won't jump
> back up to (1)?
Have a look at http://www.w3schools.com/html/html_links.asp
You don't have a anchor defining the top of the document.
You need something like the following at the top of your document;
<a name="toptext">This text is at the top of the document</a>Then a link to
that anchor somewhere within your file of the form<a href="#toptext">Jump to
Skype ID: acutecomputing
Your "Back to top" links refer to anchors that do not exist. Add an
actual "top of page" anchor and have your links point to it.
Some browsers will jump to the top of the page when a link to a
non-existent anchor is clicked on. But that's just the way they handle
that error. (I think this is what IE/Win does or did at one time.)
Because some browsers have this behavior, some web authors assumed that
all you had to do to get a "back to the top of the page" link was to
link to a non-existent anchor. In fact they were relying on a particular
error-handling behavior exhibited by some browsers. A good browser will
do nothing when you link to an anchor that doesn't exist.
James M. Shook
Your code was correct but there probably was a spacing problem.
(sorry, forgot exactly where it was)
I emailed correction to site contact.
"whiskey3" <firstname.lastname@example.org> wrote in message
> If you click on the anchor (1) it jumps to the bottom of the page but the
> "back to top" anchor does not jump back up to (1)?
> The code looks okay to me but I can't figure out why it won't jump back up