disable the back button in the browser using javascript and redirect to another page?
Disable back button in browser using javascript and redirect to any pa
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
disable the back button in the browser using javascript and redirect to another page?
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
Vishal YelveRank #178 · 13.6K reputationPosted Oct 25, 2022, 5:47 AM EDT
Disable the browser back button using JavaScript
function preventBack() { window.history.forward(); } setTimeout("preventBack()", 0); window.onunload = function () { null };