Firefox Tomorrow

web api instance method

HTMLIFrameElement: getSVGDocument() method

View on MDN ↗

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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also