读书人

Panel中有个IframeIframe中的页面有

发布时间: 2012-01-10 21:26:51 作者: rapoo

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 ' ");
试试看
行不行

读书人网 >asp.net

热点推荐