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
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

    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.

    LVL 1

    Assisted Solution

    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:Haripriya Sathiish
    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    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…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now