HTMLIFrameElement: phương thức getSVGDocument()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Phương thức getSVGDocument() của giao diện HTMLIFrameElement trả về đối tượng Document của SVG được nhúng.

Cú pháp

js
getSVGDocument()

Tham số

Không có.

Giá trị trả về

Một Document.

Ví dụ

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

Đặc tả kỹ thuật

Thông số kỹ thuật
HTML
# dom-media-getsvgdocument-dev

Tương thích trình duyệt

Xem thêm