1) Script Title: DHTML MODAL
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
3) Describe problem:
In a modal iframe - if the target is an external site (e.g. google.com) the window does not close in IE when the 'X' button is clicked. In FF it closes alright.
Here is the script ------------>
<script type="text/javascript">
function opengoogle(){ //Define arbitrary function to run desired DHTML Window widget codes
googlewin=dhtmlmodal.open( 'ajaxgooglebox', 'iframe', 'http://google.com', '#3: Ajax Win Title', 'width=650px,height=450px,center=1,resize=1,scrolling=1')
googlewin.onclose=function(){return true} //Run custom code when window is about to be closed
}
</script>
<ul>
<li><b><a href="#" onClick="opengoogle(); return false">Create/ Open Google</a> (in IE, this Ajax demo must be run online!)</b></li>
<-----------------------



Reply With Quote

Bookmarks