MDN self-hosted library · e01.org

HTMLEmbedElement: getSVGDocument() method

HTML DOM

HTML DOM

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

Syntax

getSVGDocument()

Parameters

None.

Return value

A Document.

Examples

const svg = document.getElementById("el").getSVGDocument();

Specifications

Browser compatibility

See also

  • HTMLIFrameElement.getSVGDocument
  • HTMLObjectElement.getSVGDocument