I have an iframe on the page. When the iframe is closed, I want to refresh the parent page. Checking iframe element w3 page I see that there are no standard events.
I considered the polling approach, when the parent page constantly checked whether the frame was created, and then checked whether it was deleted and then updated, but this approach is small. I can imagine that sometimes there are delays between iframe close and page reload if polling is infrequent. With more frequent polling, the page will affect the "user experience" (twitching).
I am wondering if there is another approach that is not related to parent iframe messages.
source
share