+ -
当前位置:首页 → 问答吧 → 两层iframe赋值,是这样吗?

两层iframe赋值,是这样吗?

时间:2011-10-09

来源:互联网

a.html 中用iframe嵌着 b.html
而 b.html 还有用iframe嵌着 c.html

想在a.html中写一个方法 ,给c.html中的demo文本框赋值...
请问不是这样写的吗?为什么没有效果呢....谢谢.......

document.frames['test1'].document.frames['text2'].document.getElementById('demo').value = "xxxxxx";

作者: swj006   发布时间: 2011-10-09

ie中是这样的。。。好像

作者: BLUE_LG   发布时间: 2011-10-09