HTML DOM Frame/IFrame name 属性
最后更新于:2022-03-26 22:22:02
Frame/IFrame name 属性
Frame/IFrame 对象
定义和用法
name 属性可设置或者返回 frame/iframe 元素的 name 属性值。
语法
frameObject.name=name
或者
iframeObject.name=name
浏览器支持





所有主要浏览器都支持 name 属性
实例
实例
返回 name 属性的值:
document.write(document.getElementById(“myframe”).name);
尝试一下 »
Frame/IFrame 对象