IE7用showModalDialog方法属性设置都不起作用,比如设置弹出窗口不显示地址,有没有朋友遇到过啊,怎么解决,指点一下!
window.showModalDialog(''a.html'',''title'',''scrollbars=no;resizable=no;help=no;status=no;location=no;dialogTop=25; dialogLeft=0;dialogHeight=350px;dialogwidth=410px;'');
location=no不起作用,请朋友们帮帮忙

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script type="text/javascript">
    function openDiag(){
    window.showModalDialog("http://www.163.com",window,'dialogWidth:620px;dialogHeight:500px;edge:raised;resizable:yes;scroll:no;status:no;center:yes;help:no;minimize:yes;maximize:yes;');
    }
    </script>
    </head>
    <body>
    <a href="javascript:openDiag();">打开网页对话框</a>
    </body>
    </html>
      

  2.   

    不想地址栏http://www.163.com在网页对话框中出来