The DOMWindowClose event is executed as a Window is about to be closed via window.close().  If the event is cancelled (evt.preventDefault()), the window close is cancelled.
General info
- Specification
- Addons specific
- Interface
- Event
- Bubbles
- Yes
- Cancelable
- Yes
- Target
- window, browser
- Default Action
- None
Properties
| Property | Type | Description | 
|---|---|---|
| targetRead only | EventTarget | The event target (the topmost target in the DOM tree). | 
| typeRead only | DOMString | The type of event. | 
| bubblesRead only | boolean | Does the event normally bubble? | 
| cancelableRead only | boolean | Is it possible to cancel the event? |