I hope you can help me. I need to call a javascript function every time the browser loading is cancelled. I think I may use window.stop() but I don't know how exactly read when the window stopped loading. What I'm trying to achieve is this: Do something when I click browser's cancell button
I can provide more information about my project, I'm developing a web app with Django (Python) to execute a Fbprophet model. But I need to achieve this with Javascript. And what I want to do with the function is hide the loading bar you can see in the picture.
I hope someone knows how to do it. Thanks!!!