Skip to content Skip to sidebar Skip to footer

Browser Back Event Without Onbeforeunload And Unload Events

I'm working on payment flow, when user clicks browser back need to Custom POP UP confirmation box with two links one to redirect to different page and second to same page in Javasc

Solution 1:

This might help you (although it's not best practice to interfere with browser controls): https://developer.mozilla.org/en-US/docs/Web/API/window.onbeforeunload


Post a Comment for "Browser Back Event Without Onbeforeunload And Unload Events"