Is there a way to detect that the user clicked the browser's refresh button? not the 'F5' key or 'ctrl + R' just the browser's refresh button.
I know the button itself cannot be hidden but we want to add a logic when it is clicked.
Is that possible?
Thanks,
Eduardo
Trap Browser 'refresh' button
Moderator: jeanmichel
Re: Trap Browser 'refresh' button
most likely not a way to detect the actual press of the button in the browser interface, but you can detect that the user refreshed the page, by checking something you left in the cache and is not longer there or reset.
some other ideas here: https://stackoverflow.com/questions/500 ... javascript
some other ideas here: https://stackoverflow.com/questions/500 ... javascript