HTMLIFrameElement: getSVGDocument() method

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

Syntax

js
getSVGDocument()

Parameters

None.

Return value

A Document.

Examples

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

Specifications

See also