SVGLoad | onload event
Occurs when the browser has fully parsed the element and all of its descendants.
![]() ![]() |
Syntax
| HTML Attribute | <element onload = "handler(event)"> |
|---|---|
| Event Property | object.onload = handler; |
| attachEvent Method | object.attachEvent("onload", handler) |
| addEventListener Method | object.addEventListener("SVGLoad", 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.2
Remarks
The onload event occurs when the browser has fully parsed the element and its descendants and is ready to act appropriately on that element, such as rendering the element to the target device. Before the event occurs, the browser must have loaded, parsed, and prepared referenced external resources for rendering. Optional external resources are not required to be ready for the event to occur.
The object that the event is specified for is loaded.
To invoke this event, do one of the following:
- A user opens a page in the browser to fire this event for the document or any object within it.
See also
- SVGAElement
- SVGCircleElement
- SVGClipPathElement
- SVGDefsElement
- SVGDescElement
- SVGEllipseElement
- SVGGElement
- SVGGradientElement
- SVGImageElement
- SVGLineElement
- SVGMarkerElement
- SVGMaskElement
- SVGMetadataElement
- SVGPathElement
- SVGPatternElement
- SVGPolygonElement
- SVGPolylineElement
- SVGRectElement
- SVGScriptElement
- SVGStopElement
- SVGStyleElement
- SVGSVGElement
- SVGSwitchElement
- SVGSymbolElement
- SVGTextElement
- SVGTextPathElement
- SVGTSpanElement
- SVGUseElement
- SVGViewElement
Show:

