HTMLEmbedElement: thuộc tính type
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Thuộc tính type của giao diện HTMLEmbedElement trả về một chuỗi phản ánh thuộc tính type của phần tử <embed>, cho biết MIME type của tài nguyên. Nó phản ánh thuộc tính type của phần tử <embed>.
Giá trị
Một chuỗi; kiểu MIME của tài nguyên.
Ví dụ
js
const el = document.getElementById("el");
console.log(el.type); // Kết quả: "video/webp"
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| HTML> # dom-embed-type> |