I have an IFrame inside an angular route view. When I trigger a state change in the router via navigateByUrl the window.onbeforeunload function inside the IFrame ins't triggered. Same for addEventListern("beforunload",...).
First question: Why isn't it triggered?
Second: Is there a way to solve this easily?
Fixed it by using the onpagehide event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With