< Back to Coding, HTML

Stop a page from redirecting

Put this in the console:

window.addEventListener("beforeunload", function() { debugger; }, false)

This is useful if you want to inspect a page that auto redirects.

Leave a Reply

Your email address will not be published.