SVGUnload | onunload event
Occurs when a document is removed from a window or frame.
![]() ![]() |
Syntax
| HTML Attribute | <element onunload = "handler(event)"> |
|---|---|
| Event Property | object.onunload = handler; |
| attachEvent Method | object.attachEvent("onunload", handler) |
| addEventListener Method | object.addEventListener("SVGUnload", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- pEvt [in]
-
Type: IDOMUIEvent
The IDOMEvent object.
Standards information
- Scalable Vector Graphics: Scripting, Section 18.4.3
Remarks
The onunload event occurs when the DOM implementation removes a document from a window or frame. This event applies only to the outermost svg element.
The object or document is removed from the browser window.
To invoke this event, do one of the following:
- The DOM implementation removes a document from a window or frame.
See also
Show:

