Catch a refresh

How to catch a "website refresh" before it refreshes the site

There is not really a way this can be reliably be done across all browsers.

Some information in this context:

1 Like

It is OK if it only works on Chrome but where to put the javascript in my My delphi code

You could try to add an event handler to form.OnBeforeUnload