Is there a way to change the onunload event for a page dynamically? I have a page that opens a popup. When the popup opens, I want to change the unload event for the opener to close the popup, if it is open still. I realize I could hardcode this into the opener page, but that page is actually being created by a different team and I have no control of their content. Also, they have a few hundred pages with the control that opens the popup. I have control over the popup and the code that fires when it opens. Thanks in advance for any help. I'll check in the morning and answer any questions then. Thank!!