HTMLIFrameElement: thuộc tính name
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.
Thuộc tính name của giao diện HTMLIFrameElement là một giá trị chuỗi phản ánh thuộc tính name của phần tử <iframe>, cho biết tên cụ thể của phần tử <iframe>.
Giá trị
Một chuỗi.
Ví dụ
html
<iframe id="el" name="example"></iframe>
js
const el = document.getElementById("el");
console.log(el.name); // Output: "example"
Đặc tả kỹ thuật
| Specification |
|---|
| HTML> # dom-iframe-name> |