首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Panel中有个Iframe,Iframe中的页面有个Button,小弟我如何实现点击这个Button来隐藏整个Panel

2012-01-10 
Panel中有个Iframe,Iframe中的页面有个Button,我怎么实现点击这个Button来隐藏整个Panel?Panel中有个Ifram

Panel中有个Iframe,Iframe中的页面有个Button,我怎么实现点击这个Button来隐藏整个Panel?
Panel中有个Iframe,Iframe中的页面有个Button,我怎么实现点击这个Button来隐藏整个Panel?
请高手们指点指点,在此多谢了。。。。

[解决办法]
假设Panel id=panel1, button id=button1, iframe id=iframe1

js:


button onclick = window.parent.frames[ "iframe1 "].document.getElementById( "panel1 ").display= "none "
[解决办法]

this.Button1.Attributes.Add( "onclick ", "window.parent.document.all( 'panel ').style.display= 'none ' ");
试试看
行不行

热点排行