【发布时间】:2014-05-04 11:07:49
【问题描述】:
Is it possible to set value as attribute to iframe in HTML? Or is there any other solution?
<iframe name="some name" src="url" value="some values"></iframe>
JS代码
我正在使用 JavaScript 访问属性,例如
parent.window.frames[window.name].name;
我的名字正确,但价值没有得到。
if possible then how to access??
【问题讨论】:
-
为什么需要 iframe 的 value 属性?
标签: javascript html iframe cross-domain