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

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