HTMLIframeElement: getSVGDocument() method

The getSVGDocument() method of the HTMLIframeElement interface returns the Document object of the embedded SVG.

Syntax

js
getSVGDocument()

Return value

A Document.

Examples

js
const svgDoc = document.getElementById("el").getSVGDocument();

Specifications

Browser compatibility

See also