How do I create "Return to Top of Page" (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


7000in5th -> How do I create "Return to Top of Page" (10/27/2004 12:25:21)

Hi,

I have a personal web site with lots of pages. Is there a way to put a "Return to Top of Page" command at the bottom of each page? I am not anxious to bookmark to a specific item at the top of each page.

Thanks,
David
Web Rookie




bobby -> RE: How do I create "Return to Top of Page" (10/27/2004 12:41:17)

You will need a bookmark of some kind... I usually use the logo or some other piece of the page near the top... then link to that anchor point.

You could also try this:

<a href="">Back to Top</a>

That should reload the page... but it may take you right back to the bottom when it does.

[;)]




7000in5th -> RE: How do I create "Return to Top of Page" (10/27/2004 13:01:30)


quote:

ORIGINAL: bobby

You will need a bookmark of some kind... I usually use the logo or some other piece of the page near the top... then link to that anchor point.

You could also try this:

<a href="">Back to Top</a>

That should reload the page... but it may take you right back to the bottom when it does.

[;)]


Thanks bobby,

Hmmmm... a logo...the mind boggles.

I'll just have to get creative with my bookmark anchor point.

Appreciate it,
David




bobby -> RE: How do I create "Return to Top of Page" (10/27/2004 13:18:28)

If all else fails you can link to text or something else...

Even add a 1x1 px clear gif image at the top and use that for your anchor point..?




7000in5th -> RE: How do I create "Return to Top of Page" (10/27/2004 13:49:09)

I just tried putting an "Includes Page" at the top (with the word "Logo" just for fun) but "Insert>Bookmark" won't let me bookmark the Includes Page..

David




bobby -> RE: How do I create "Return to Top of Page" (10/27/2004 13:56:09)

Why not just add the word to your page?

It does the same thing essentially, but won't require the include bot. (Won't be recognize as a valid anchor target because it's technically not a page element...)

Did you try adding the anchor tag to the word Logo on the include page itself?




7000in5th -> RE: How do I create "Return to Top of Page" (10/27/2004 14:25:27)

I had hoped to use a temporary logo then replace it with the final one later but only need to change it on the includes page, not each page individually.

David




7000in5th -> RE: How do I create "Return to Top of Page" (10/27/2004 14:32:34)


quote:

Did you try adding the anchor tag to the word Logo on the include page itself?


Just tried that but it returned me to the "Logo.htm" Includes Page.

David




bobburk -> RE: How do I create "Return to Top of Page" (10/27/2004 14:50:20)

Maybe this is too simple, but I just add the words "Top Of Page" and link the words to the page address. I guess it essentially restarts the page at the top. Seems to work well and is very simple.

Bob B.




AMysticWeb -> RE: How do I create "Return to Top of Page" (10/27/2004 17:36:38)

Hi David,

I use this or something similar in a bottom shared border. Doesn't require a bookmark.

<a href="#">Top</a>




Charles W Davis -> RE: How do I create "Return to Top of Page" (10/28/2004 14:59:19)

This is just a slight variant:

<A HREF="#top">Top</A>




d a v e -> RE: How do I create "Return to Top of Page" (10/28/2004 16:20:49)

it's better to use a bookmark if you want it to work everywhere...




7000in5th -> RE: How do I create "Return to Top of Page" (10/29/2004 14:56:09)

Thanks very much to all of you that suggested solutions to my search for a simple way to put a "Return to Top of Page" on my dozens of web pages. Below is a summary of the results that I got:

bobby suggested:
<a href="">Back to Top</a>
Result: Surprisingly, this one returned me to my Home page, not to the page it is on. An excellent answer to the question I hadn't yet asked, but very useful, none-the-less. Unless someone has a reason not to, I intend to use it on all my pages to "Return Home".

bobburk suggested:
".....add the words "Top Of Page" and link the words to the page address."
Result: Worked fine but does require typing the address for each different page.

AMysticWeb suggested:
"I use this or something similar in a bottom shared border. Doesn't require a bookmark.
<a href="#">Top</a>
Result: It worked and requires no special typing on every page. I am not sure what a bottom shared border is and assume my test page does not have one.

Charles W Davis suggested:
"This is just a slight variant:
<A HREF="#top">Top</A>
Result: It also worked and requires no special typing on every page.

dave (David Prescott) warned:
"it's better to use a bookmark if you want it to work everywhere..."
Question: Where will the latter two above not work?

Click here to see my test page.

Any other comments?

David




d a v e -> RE: How do I create "Return to Top of Page" (10/29/2004 15:29:58)

they don't work with just # in opera 7.54

use this as the link target near/at the top of the page

<a name="top"></a>


then use this in your link

<p><a href="#top">top</a></p>




remclave -> RE: How do I create "Return to Top of Page" (10/29/2004 16:04:53)

Here's what I use:

<a href="pagename.htm">Back To Top</a>




d a v e -> RE: How do I create "Return to Top of Page" (10/29/2004 17:17:27)

but that reloads the page?! the anchor target is the correct way to do it




bobby -> RE: How do I create "Return to Top of Page" (10/29/2004 17:41:57)

quote:

Result: Surprisingly, this one returned me to my Home page, not to the page it is on.

Interesting... I've never had it do that to me before...

I always use this as my home page link:

<a href="/">Home</a>

Which works quite well...

typically the empty href will link right back to the page it's on... unless I just haven't been paying attention...

[8|]




d a v e -> RE: How do I create "Return to Top of Page" (10/29/2004 18:03:18)

am i missing something or there some reason not to use the internal anchor? is it too many kb of code ;)




7000in5th -> RE: How do I create "Return to Top of Page" (10/30/2004 11:18:17)


quote:

ORIGINAL: d a v e

am i missing something or there some reason not to use the internal anchor? is it too many kb of code ;)


Since I am retro-coding dozens of pages, putting code at both the top and the bottom of every page is a little more time consuming but, if it makes the pages more universally useable, I will do it.

Any further comments?

Thanks again to all,
David




d a v e -> RE: How do I create "Return to Top of Page" (10/30/2004 12:07:14)

you may be able to use find and replace?

e.g. find the logo or some code at the page top and then find and replace with the same code PLUS <a name="top"></a> or whatever at the beginning. as always before using find and replace back up the site beforehand.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125