getSVGDocument

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

MDN Reference