unload is deprecated - is there any substitute for leaving a page and firing an event?
When I leave a webpage, I need to clear all the timers that I had previously set with 'setTimeout'. Microsoft Edge may have a bug where it doesn't turn them off, -- I'm not sure, but a bug I'm encountering would be consistent with them having a problem. Anyway, I looked up the jQuery documentation, and found that the 'unload' event is deprecated. So what can I use that will tell me when either the page is left, or if that is impossible, that a link has been clicked that goes to another page, or if its a form, that the form has posted back.
Thanks.