当前页面: 开发资料首页 → JSP 专题 → iframe的显示和隐藏
iframe的显示和隐藏
摘要: iframe的显示和隐藏
在index页面中有两个frame,分别指向1.htm和2.htm,如下
<iframe src="1.htm" ></iframe>
<iframe src="2.htm" ></iframe>
问题是,能否在1.htm控制index.htm中两个frame 的显示和隐藏?
document.all.aa.style.visibility='visible'在index.htm页面是可以的,换到1.htm就找不到document.all.aa了,怎么办????
好象是
window.parent.document.all.aa