I am creating a pop-up window. After I am finished with the work on child (pop up) window and click close button, I need to call a JavaScript function of the parent window. How can I achieve this?
I am not creating the child window myself but displaying the contents of some other URL.
I am creating a pop-up window. After I am finished with the work on
Share
I don’t think you can get an event, because you can’t mess with the document itself when the URL is from a different domain. You can however poll and check the “closed” property of the window object:
You could also start an interval timer if you prefer: