call an action when close a popup window - how to associate it ?

call an action when close a popup window - how to associate it ?

  
I just want to call an action when my popup window closes by the X (close) option.  As I reuse some screens (inside the popup) that are not prepared to use as popup layout, I don´t send notify from them.
There's no easy way to do that; you'd need to work some jQuery magic to make it happen (like detect the X's link, hook it's "OnClick" to trigger your Action, and the Action calls Popup_Editor_Close" as it's final step).

J.Ja
Thanks for suggestion Justin, but I have found a workaround. I put the following command in the onunload at extended properties:
"parent.OsNotifyWidget(parent.RichWidgets_Popup_Editor_notifyWidget,'" + EncodeJavaScript("closed") + "');"
and it worked.
Hi Liciano Sir,

Your javascript code helped me too. Thanks a lot.

-- Suraj
Yw