Chris Bouveret
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
Has successfully completed the online course Advanced (320)
Has successfully completed the Intermediate Certification
Has successfully completed the Advanced Certification
6 months ago
#43674
::
Hi Leonid,
Simply put, it is impossible to avoid Page reload if the User clicks the ‘Refresh’ button on the browser. There is no way to avoid it if the user wants to refresh the page. But this could be intercepted as described in this StackOverflow post, you can use window.onbeforeunload to detect refresh (either F5, CTRL+R or the browser’s button). Usually this can be used to trigger a dialog for the user where a confirmation is asked to referesh the page
Hope this helps