473,372 Members | 1,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

the "history.back" function

Hi...

I use a function something like this,

<a href="javascript:history.back();">Return to original page</a>

to give people a "back" option sometimes on pages.

Is there any way of directing them back to a particular named anchor on the
last page?
thanks for any advice...

GB
Jul 23 '05 #1
4 2169
Food Groupy wrote:
Hi...

I use a function something like this,

<a href="javascript:history.back();">Return to original page</a>
http://www.jibbering.com/faq/#FAQ4_24
to give people a "back" option sometimes on pages.
They already have one, conveniently built into the browser, and it
doesn't suffer from the problem you are asking about next.
Is there any way of directing them back to a particular named anchor on the
last page?


How are you even sure that anchor exists in the last page? And, if I
bookmark the page, reboot, reopen the page with the bookmark, how does
the .back() work? It doesn't......

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #2
to give people a "back" option sometimes on pages.
They already have one, conveniently built into the browser, and it
doesn't suffer from the problem you are asking about next.


I understand this about the "back" function being built into the browser.
My particular example is for a customer who has completed a long form as
part of a registration process, presses "submit", goes to a payment options
page where his chosen registration option is displayed. If he discovers he
has chosen the wrong option, I wanted a "customized" BACK script that would
take him directly to the specified <SELECT> option, instead of having them
laboriously scrolling around to find it.

It was for the customer's convenience.
My, how we jump to conclusions.
My, how we love to preach.

Is there any way of directing them back to a particular named anchor on the last page?


How are you even sure that anchor exists in the last page? And, if I
bookmark the page, reboot, reopen the page with the bookmark, how does
the .back() work? It doesn't......


I think my above detail explains that "yes", there is an anchor on the page.
I suppose I could devise some kind of cookie script that would do the trick.

Jul 23 '05 #3
Food Groupy wrote:
to give people a "back" option sometimes on pages.
They already have one, conveniently built into the browser, and it
doesn't suffer from the problem you are asking about next.

I understand this about the "back" function being built into the browser.
My particular example is for a customer who has completed a long form as
part of a registration process, presses "submit", goes to a payment options
page where his chosen registration option is displayed. If he discovers he
has chosen the wrong option, I wanted a "customized" BACK script that would
take him directly to the specified <SELECT> option, instead of having them
laboriously scrolling around to find it.


Page1 checks for the cookie, if its there, it sets focus on the select
and then it removes it.
Page2 sets the cookie, and then does the .back()

A better solution would be to have the payment method on the second page
though.
It was for the customer's convenience.
My, how we jump to conclusions.
You should read the FAQ, with regards to basic assumptions in this group.
My, how we love to preach.

My, how we love to leave out details that make a difference in the
possible answer you might recieve.
Is there any way of directing them back to a particular named anchor on
the
last page?
How are you even sure that anchor exists in the last page? And, if I
bookmark the page, reboot, reopen the page with the bookmark, how does
the .back() work? It doesn't......

I think my above detail explains that "yes", there is an anchor on the page.


A <SELECT> isn't an anchor. They are two different things.
I suppose I could devise some kind of cookie script that would do the trick.


See above, and kill the sarcasm, it can go on for weeks and serves no
purpose.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #4
Randy, an honorable 'thank you' for your assistance...

(my how we love to jump to conclusions about other people jumping to
conclusions....)
"Randy Webb" <hi************@aol.com> wrote in message
news:lN********************@comcast.com...
Food Groupy wrote:
to give people a "back" option sometimes on pages.

They already have one, conveniently built into the browser, and it
doesn't suffer from the problem you are asking about next.

I understand this about the "back" function being built into the browser. My particular example is for a customer who has completed a long form as
part of a registration process, presses "submit", goes to a payment options page where his chosen registration option is displayed. If he discovers he has chosen the wrong option, I wanted a "customized" BACK script that would take him directly to the specified <SELECT> option, instead of having them laboriously scrolling around to find it.


Page1 checks for the cookie, if its there, it sets focus on the select
and then it removes it.
Page2 sets the cookie, and then does the .back()

A better solution would be to have the payment method on the second page
though.
It was for the customer's convenience.
My, how we jump to conclusions.


You should read the FAQ, with regards to basic assumptions in this group.
My, how we love to preach.


My, how we love to leave out details that make a difference in the
possible answer you might recieve.
Is there any way of directing them back to a particular named anchor on


the
last page?

How are you even sure that anchor exists in the last page? And, if I
bookmark the page, reboot, reopen the page with the bookmark, how does
the .back() work? It doesn't......

I think my above detail explains that "yes", there is an anchor on the

page.
A <SELECT> isn't an anchor. They are two different things.
I suppose I could devise some kind of cookie script that would do the
trick.
See above, and kill the sarcasm, it can go on for weeks and serves no
purpose.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: George | last post by:
I am trying to set up a login-logout website. I have a cookie about the login status. I put it as logout once the logout link is clicked. And I put a little security check about the status of...
6
by: Don Leverton | last post by:
Hi All, I've got a situation where I am developing an Access 97 app for a client, and am in the "beta testing" stage. I have split the app up, using the DB splitter, into front-end /back-end...
2
by: VB Programmer | last post by:
I created a page which I am using to prevent the user from hitting the BACK button. I'll call it my "Auto Jump" page. When it is called it basically auto-redirects to a page specified in the...
2
by: eholz1 | last post by:
Hello PHP Group, I have a php page that calls another php page to load a image from a database (mysql) in to the calling page. It works like this: first_view.php has <img src="image.php?img=5"...
2
by: elia | last post by:
Hello, We change our server and before this code was ok: <a href="#" onClick="history.back()">Retour</a> ...but on the new server, it doesn't work anymore?? We come back, see the last page...
0
by: Prakash | last post by:
hi, I have developed application using asp.net2.0 +ajax with history control of asp.net future. All application is working fine without adding history control. But when I add history control...
2
by: Shyckymn | last post by:
How do I delete some entries that are result of the query below? db2 list history containing schema.table for database I want to remove some entries from the List History command. It is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.