Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4027948
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:09:35+00:00 2026-05-20T11:09:35+00:00

For example the user came to the page from example.com/home.html to the page example.com/checkout.html

  • 0

For example the user came to the page from example.com/home.html to the page example.com/checkout.html. I wonder if there is a way to assign a history back to something like example.com/new_offers.html?

So, when clicking his browser back button, instead of going to home.html the user will be redirected to new_offers.html

I know it may sound awkward, but it’s just the example and the thing I need this for is a bit different. Also, I need to do this using JavaScript only (nothing server-side).

UPD: I figured out that it’d be clearer to ask whether it’s possible to bind a handler to browser back button like (jQuery):

$(browser.backButton).click(function(e){ ... })

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:09:35+00:00Added an answer on May 20, 2026 at 11:09 am

    Instead of going to the checkout page from the home page, you can go to new_offers, which checks a variable checked_out. If checked_out is false, then redirect the user to checkout passing along all the form information. If checked_out was true, then display the new_offers page.
    checked_out will be set to true at the checkout page.

    In this way, if the user clicks back at the checkout page, the user will actually go to the new_offers page.

    I don’t like this design very much as it means that a user has to click back twice quickly to get to a previous website, but it does satisfy your goals.

    In other words, your current design does this:

    home –> checkout

    Instead, do this:

    home –> new_offers — (redirect) –> checkout

    So that new_offers redirects to checkout immediately unless it sees that the user has already checked out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to apply fade effect after validation. For example the user
I want to store the page location the user came from (on my site).
What's the best way to link back to the page that a user has
I want to show the domain that user came from to my page with
On my site, user profiles can be reached by the url www.example.com/user/profile.php?uid=3 I want
FactoryGirl.define do sequence :email do |n| user#{n}@example.com end factory :user do email {FactoryGirl.generate :email}
How I can redirect users to home page in default language? For example to
In Magento, when the user directly accesses the product page, such as from Google,
So when a user comes to my page, there is certain data that I
Example user input: PA1 9 //correct PJ1 9 //wrong, error printed Invalid row because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.