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
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
