[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How do I Insert an Entry into Browsing History so Back Button Goes to Different Page 1st Click then Original Page on 2nd Click?

Posted on 2009-04-15
Medium Priority
Last Modified: 2012-05-06
So if you need a good explanation of what I want done, go to:

I just need a script that will allow me to insert an entry in the browsing history so when back button is hit, the user will be taken to my special page.
Question by:selpmet
LVL 29

Accepted Solution

David H.H.Lee earned 500 total points
ID: 24154227
Hi selpmet,
You have to create some sort of cookie to keep track the previous visited page. If this page is link from other page, you able to get the referral page inside the cookie. If user click "back" button, you can trace the created cookie to force redirect to special page as desired. But,this solution has faulty if the user's cookies has been turned off.
Here is one article is guiding the solution as mentioned in .net version. You can amend it into your exact flow.


Assisted Solution

excalo earned 500 total points
ID: 26566776
See if this helps you:

Also, check back on the other site where you posted this identical question >.<
The answers there pretty much sum it all up.
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 37175623
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question