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){ ... })