Article From:https://segmentfault.com/q/1010000011119784
Question:

Parent calls $(‘#ifr1’) [0].contentWindow.location.reload ();
Refresh the iframe of the sub page. After refreshing, there is JS operation. How do I know that the refresh is over?

Answer 0:

You can add onload events to the parent page in the iframe page.

Answer 1:

Can pass throughonbeforeunload andonunload To monitor

Leave a Reply

Your email address will not be published. Required fields are marked *