Hi.
Help me with capture Browser back button and redirect it to WWW.GOOGLE.COM.
in JS.
Thanks.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Feb 27, 2017, 2:58 AM EST
Ms_ DevRank #8,652 · 218 reputationPosted Feb 27, 2017, 3:04 AM EST
Confirm Form Resubmission
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Feb 27, 2017, 3:10 AM EST
Anyways, use this code. It will handle the back button. For more on this, please read: http://stackoverflow.com/questions/25806608/how-to-detect-browser-back-button-event-cross-browser.