JavaScript: Handle unload event on redirect

288 Views Asked by At

Am trying to handle unload event on browser redirect (e.g. redirect on a button click), but it seems it is not getting triggered. I can see beforeunload being triggered, but not unload one.

Is there a way to trigger unload event as well?

0

There are 0 best solutions below