Trap Browser 'refresh' button

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
eduardorama
Posts: 13
Joined: 19 Aug 2020, 11:26

Trap Browser 'refresh' button

Post by eduardorama »

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
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Re: Trap Browser 'refresh' button

Post by Dino »

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
Post Reply