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