Is it possible to detect when the user clicks “stop” in his browser?

I wrote a custom script loading file that uses an animated gif while retrieving data. I would like to stop the animation if the user clicks the Stop button during loading.

Is it possible to detect when the user clicks "stop"?

+4
source share

Source: https://habr.com/ru/post/1681077/


All Articles