HTMLObjectElement: getSVGDocument() method
The getSVGDocument()
method of the HTMLObjectElement
interface returns the Document
object of the embedded SVG.
Syntax
js
getSVGDocument()
Return value
A Document
.
Examples
js
const svg = document.getElementById("el").getSVGDocument();