Questions dealing with causing or preventing the re-rendering of an HTML document by a web browser.
Questions tagged [page-refresh]
1048 questions
-1
votes
1 answer
onbeforeunload window location change not working
I want to capture the page reload event using JavaScript and then redirect to a different URL (i.e. load the different page in the same browser tab) instead of the letting the existing page reload. My code is here -