HTMLIframeElement: getSVGDocument() method

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

Value

Examples

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

Specifications

No specification found

No specification data found for api.HTMLIframeElement.getSVGDocument.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

BCD tables only load in the browser

See also