sangi
sangi

Reputation: 531

Intercept close Popup from Parent Page

I have a question. In an html page, I have javascript code that allows me to open and close a popup window by clicking on a link displayed in the link, so the text displayed in the link changes to the state of the popup window (open-closed).

With a variable true / false I manage the opening and closing of the popup window to click on a link whose text is aligned "opened popup" / "closed popup".

The next step is to make this same change in state (true / false, "opened popup" / "close popup") directly by closing the popup window. The idea is to not have to refresh the page. Is this possible?

Thank you and best regards

Upvotes: 1

Views: 724

Answers (1)

SLaks
SLaks

Reputation: 887385

Handle the popup window object's unload event.

Upvotes: 1

Related Questions