By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,179 Members | 2,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,179 IT Pros & Developers. It's quick & easy.

back link

P: n/a
Here is a simple on that I need help with.....

I need to create a link "back" that when you click it, it returns you back
to the previous page that you were at.

I am not looking for button which I know how to do - <FORM><INPUT
TYPE="button" VALUE="Back" onClick="history.go(-1);return true;"></FORM>

I an looking to do it as if it was a hyperlink.

Thank you.

Jan 26 '07 #1
Share this Question
Share on Google+
11 Replies


P: n/a
In our last episode, <kQeuh.786901$5R2.439343@pd7urf3no>, the lovely and
talented prophet broadcast on comp.infosystems.www.authoring.html:
Here is a simple on that I need help with.....
I need to create a link "back" that when you click it, it returns you back
to the previous page that you were at.
Why do you need to do that? Every browser I have ever used already has
a back button, a back key, or both a back button and a back shortcut key.
I am not looking for button which I know how to do - <FORM><INPUT
TYPE="button" VALUE="Back" onClick="history.go(-1);return true;"></FORM>
I an looking to do it as if it was a hyperlink.
You cannot do this in html. Some scripting languages can do this, but that
of course depends upon the browser enabling the scripting language.
Thank you.
You can of course have links that go both ways by using both NAME and HREF
in A. But such links only work in pairs, and I don't think that is what you
are asking. You want to go back to whichever page you came from, not to a
particular page that perhaps you have not even visited. All browsers
already have the ability to do this, if that is what the user wants to do.

--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 725 days to go.
Jan 26 '07 #2

P: n/a
Fri, 26 Jan 2007 03:46:24 GMT from prophet <M_*****@hotmail.com>:
I need to create a link "back" that when you click it, it returns you back
to the previous page that you were at.
Why do you "need" that?

Every browser in common use already has that capability as part of
its interface. Why do you think you should reinvent the wheel?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jan 26 '07 #3

P: n/a

"Stan Brown" <th************@fastmail.fmwrote in message
news:MP************************@news.individual.ne t...
Fri, 26 Jan 2007 03:46:24 GMT from prophet <M_*****@hotmail.com>:
>I need to create a link "back" that when you click it, it returns you
back
to the previous page that you were at.

Why do you "need" that?

Every browser in common use already has that capability as part of
its interface. Why do you think you should reinvent the wheel?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you

I have a number of different pages which all connect in different ways, and
on some of the pages, once you are there, you have to go back to the page
you started on before going forward (confusing, but it works for what I am
doing). I am trying to make my page more user friendly by having the
ability to go back with all of the other link options and not as part of the
browser.

I am amazed by the negativity towards my question....
Jan 26 '07 #4

P: n/a
prophet wrote:
I have a number of different pages which all connect in different
ways, and on some of the pages, once you are there, you have to go
back to the page you started on before going forward
So if I found your page in a search engine, do you want this 'back' link
to take me back to the search engine?
I am amazed by the negativity towards my question....
Because what you want to do is counter-intuitive. It is confusing to the
user. The browser's Back button makes a lot of sense to me, but a "back"
link doesn't. When I see a "back" link, I have to guess where you think
I came from and where you think the link should take me. Often "back"
links don't go where I think they should. "back" to you may not be the
same as "back" to me.
Jan 26 '07 #5

P: n/a
prophet wrote:
"Stan Brown" <th************@fastmail.fmwrote in message
news:MP************************@news.individual.ne t...
>Fri, 26 Jan 2007 03:46:24 GMT from prophet <M_*****@hotmail.com>:
>>I need to create a link "back" that when you click it, it returns you
back
to the previous page that you were at.
Why do you "need" that?

Every browser in common use already has that capability as part of
its interface. Why do you think you should reinvent the wheel?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you


I have a number of different pages which all connect in different ways, and
on some of the pages, once you are there, you have to go back to the page
you started on before going forward (confusing, but it works for what I am
doing). I am trying to make my page more user friendly by having the
ability to go back with all of the other link options and not as part of the
browser.

I am amazed by the negativity towards my question....

If you are indeed "trying to make my page more user friendly", then
don't "break" the existing Back buttons on browsers. See
<http://www.w3.org/QA/Tips/reback>.

Usually, the only time a page needs a Back button within the page itself
is when the visitor reached that page via a JavaScript link instead of
an HTTP link. That by itself is an abomination since about 10% of Web
surfers disable or don't even have JavaScript. Also, the URLs for such
links cannot be copied (mouse-over, right-click, Copy Link Location).

The alternative is to put an explicit link to the page the visitor
should next visit. Of course, if it's possible to reach the same page
from different locations, the browser's Back button is the only recourse.

You could end the page with the text:
"Use your browser's Back button to
return to the prior page and then
continue."

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Jan 27 '07 #6

P: n/a
Fri, 26 Jan 2007 16:56:06 GMT from prophet <M_*****@hotmail.com>:
>
"Stan Brown" <th************@fastmail.fmwrote in message
news:MP************************@news.individual.ne t...
Fri, 26 Jan 2007 03:46:24 GMT from prophet <M_*****@hotmail.com>:
I need to create a link "back" that when you click it, it returns you
back
to the previous page that you were at.
Why do you "need" that?

Every browser in common use already has that capability as part of
its interface. Why do you think you should reinvent the wheel?
(excessive quoting trimmed)
I have a number of different pages which all connect in different ways, and
on some of the pages, once you are there, you have to go back to the page
you started on before going forward (confusing, but it works for what I am
doing).
Listen to what you are saying! If it's confusing, it's wrong. Yes, it
really is that simple.

Spend some time at http://useit.com and learn about what makes a site
usable.
I am trying to make my page more user friendly by having the
ability to go back with all of the other link options and not as part of the
browser.
"User friendly" is *not* forcing the user to do things your way. USer
friendly is getting out of the user's way, so that she can
concentrate on the content and not some silly-ass special navigation
scheme you've set up to replace the scheme she already knows.
I am amazed by the negativity towards my question....
When you're going in the wrong direction, it is progress to turn
around and go the other way. Going forward, when you're going in the
wrong direction, is not progress.

As Olw said to Fanor, "It is the part of a friend to rebuke a
friend's folly."

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jan 27 '07 #7

P: n/a
I understand what everyone is trying to say - and I partially agree, but I
am going to be the primary user of the page. I received the idea from
someone who is helping me and I thought it was a good idea as when I went to
far in my links (as has happened when I get going to fast), I could simply
move my mouse a 1/2 inch, rather than have to go to the top of the page.
Jan 27 '07 #8

P: n/a
"prophet" <M_*****@hotmail.comwrites:
I understand what everyone is trying to say - and I partially agree, but I
am going to be the primary user of the page. I received the idea from
someone who is helping me and I thought it was a good idea as when I went to
far in my links (as has happened when I get going to fast), I could simply
move my mouse a 1/2 inch, rather than have to go to the top of the page.
Well, first of all - slow down and pay attention. You're reading web pages,
not playing Quake.

Second of all, the back button at the top of the window is not the only way
to trigger your browser's "back" function. On every graphical browser I've
looked at, you could also right-click and choose "back" from the contextual
menu.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Jan 27 '07 #9

P: n/a
Gazing into my crystal ball I observed "prophet" <M_*****@hotmail.com>
writing in news:kQeuh.786901$5R2.439343@pd7urf3no:
Here is a simple on that I need help with.....

I need to create a link "back" that when you click it, it returns you
back to the previous page that you were at.

I am not looking for button which I know how to do - <FORM><INPUT
TYPE="button" VALUE="Back" onClick="history.go(-1);return
true;"></FORM>

I an looking to do it as if it was a hyperlink.

Thank you.

From what you have said in other parts of the thread, you may want a
breadcrumb trial. Google for it.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jan 27 '07 #10

P: n/a

"Adrienne Boswell" <ar****@yahoo.comwrote in message
news:Xn****************************@69.28.186.121. ..
Gazing into my crystal ball I observed "prophet" <M_*****@hotmail.com>
writing in news:kQeuh.786901$5R2.439343@pd7urf3no:
>Here is a simple on that I need help with.....

I need to create a link "back" that when you click it, it returns you
back to the previous page that you were at.

I am not looking for button which I know how to do - <FORM><INPUT
TYPE="button" VALUE="Back" onClick="history.go(-1);return
true;"></FORM>

I an looking to do it as if it was a hyperlink.

Thank you.


From what you have said in other parts of the thread, you may want a
breadcrumb trial. Google for it.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Thank you very much
Jan 27 '07 #11

P: n/a
In article <m2************@Sherm-Pendleys-Computer.local>,
Sherm Pendley <sp******@dot-app.orgwrote:
"prophet" <M_*****@hotmail.comwrites:
I understand what everyone is trying to say - and I partially agree, but I
am going to be the primary user of the page. I received the idea from
someone who is helping me and I thought it was a good idea as when I went
to
far in my links (as has happened when I get going to fast), I could simply
move my mouse a 1/2 inch, rather than have to go to the top of the page.

Well, first of all - slow down and pay attention. You're reading web pages,
not playing Quake.

Second of all, the back button at the top of the window is not the only way
to trigger your browser's "back" function. On every graphical browser I've
looked at, you could also right-click and choose "back" from the contextual
menu.

sherm--
Plus some browsers have additional back button functions. Like a link
to take you back to the page at which you entered the site, and options
to mark a specific page for snapback.

--
http://www.ericlindsay.com
Jan 27 '07 #12

This discussion thread is closed

Replies have been disabled for this discussion.