HTML DOM
The name property of the HTMLIFrameElement interface is a string value that reflects the name attribute of the iframe element, indicating the specific name of the <iframe> element.
Value
A string.
Examples
<iframe id="el" name="example"></iframe>
const el = document.getElementById("el");
console.log(el.name); // Output: "example"
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
