HTMLObjectElement: getSVGDocument() method

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 HTMLObjectElement trả về đối tượng Document của SVG nhúng.

Cú pháp

js
getSVGDocument()

Tham số

Không có.

Giá trị trả về

Một Document.

Ví dụ

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

Thông số kỹ thuật

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

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

Xem thêm