showModelDialog兼容IE6+,FF

if(document.all)  //IE时用模态窗口打开
{    
var srcFile = "winduser.html";     
var winFeatures = "dialogWidth:400px;dialogHeight:495px;status:no;dialogLeft:600;dialogTop:300";         
window.showModalDialog(srcFile,window,winFeatures);
}else  //非IE用open打开
{  
if(mnewWindow=="")
{
mnewWindow=window.open('winduser.html','_blank','left=600,top=300,width=390,height=443,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
mtimer = setInterval("CheckWindColse()", 100); //父窗口定时检测子窗口
}else
{
mnewWindow.focus();
}
}

你可能感兴趣的:(html,IE)