Set the script that will be added before the window is closed. This is where you should call javascript functions on the opening window if desired.
ClosePopUpDP Class | com.plumtree.uiinfrastructure.form Namespace