PopupEvent

This event class is fired when a popup is about to be displayed, or when a popup is closed.

This event has two subtypes:

The event target for this event type is the mainWindow object.

When a new popup replaces an old popup, the "open" event for the new popup will occur before the "close" event for the old popup. The events occur in this order (which might seem a little surprising) because the proximate cause of the old popup closing is the opening of the new popup, and it's not a foregone conclusion that the new popup will open at all until the "open" event returns without canceling the new popup.

Properties

This event type has all of the standard event properties and methods (see the Event class). In addition, it has the following: