flx83
10-22-2009, 01:27 AM
1) Script Title: DHTML Window widget
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem: the usual way to close the iframe from the iframe itself doesn't work in IE 8.
Hi.
The following script should close the iframe with a button located in the iframe itself
Page
<a href="#" onClick="yah=dhtmlwindow.open('yahoo', 'iframe', './etud/s_actif_try.aspx', 'Yahoo', 'width=500px,height=300px,center=1'); return false">Show Yahoo</a>
Iframe
<a href="#" onClick='javascript:parent.yah.close();'><img src="../images/fermeaide.gif" width="126" height="46" border="0"></a>
It works in Opera, FF, Chrome... but not in IE8.
Any solution ?
Thanks for help
françois
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem: the usual way to close the iframe from the iframe itself doesn't work in IE 8.
Hi.
The following script should close the iframe with a button located in the iframe itself
Page
<a href="#" onClick="yah=dhtmlwindow.open('yahoo', 'iframe', './etud/s_actif_try.aspx', 'Yahoo', 'width=500px,height=300px,center=1'); return false">Show Yahoo</a>
Iframe
<a href="#" onClick='javascript:parent.yah.close();'><img src="../images/fermeaide.gif" width="126" height="46" border="0"></a>
It works in Opera, FF, Chrome... but not in IE8.
Any solution ?
Thanks for help
françois