【www.gdgbn.com--jquery】
1.在父窗口中操作 选中iframe中的所有单选钮
$(window.frames["iframe1"].document).find("input[@type="radio"]").attr("checked","true");
2.在iframe中操作 选中父窗口中的所有单选钮
$(window.parent.document).find("input[@type="radio"]").attr("checked","true");
iframe框架的
:
ie7中测试通过
1 $(window.frames["iframechild"].document).find("#child")
2 $("#child",window.frames["iframechild"].document)
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
页面首页
iframe.html 内容:
xml/html代码
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
iframe.html
www.111cn.net
网页特效代码
document.getelementbyid("koyoz").contentwindow.document.getelementbyid("test").style.color="red"
通过在index.html访问id名为"koyoz"的iframe页面,并取得此iframe页面内的id为"test"的
对象,并将其颜色设置为红色.