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 |
---|---|---|
target Read only |
EventTarget |
The event target (the topmost target in the DOM tree). |
type Read only |
DOMString |
The type of event. |
bubbles Read only |
boolean |
Does the event normally bubble? |
cancelable Read only |
boolean |
Is it possible to cancel the event? |