HTMLObjectElement: getSVGDocument() method
HTML DOM
HTML DOM
The getSVGDocument() method of the HTMLObjectElement interface returns the Document object of the embedded SVG.
Syntax
getSVGDocument()
Parameters
None.
Return value
A Document.
Examples
const svg = document.getElementById("el").getSVGDocument();
Specifications
Browser compatibility
See also
- HTMLIFrameElement.getSVGDocument
- HTMLEmbedElement.getSVGDocument