点一下按钮弹出一个窗口设置问题
点一下按钮弹出一个窗口222.htm 是弹出空窗口 最上面的蓝色状态条显示"客户管理设置"
可是在有些xp的IE浏览器,有时还是先显示网址后在显示内容 如 http://www.aabbcc.com客户管理设置
如何让它不显示网址
showModelessDialog的弹出新窗口里操作button,还是弹出新窗口   <base target="_self"> 加上这也不行
??222.htm
<HTML>
<HEAD>
<TITLE> 客户管理设置</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> 
  <base target="_self"> 
  </HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM METHOD="post" ACTION=""><INPUT TYPE="submit" NAME="Submit" VALUE="Submit"></FORM> 
</BODY>
</HTML>
  index.htm
  <script language="javascript">
   function newopen_m()
   {                           
window.open('22.htm',"detail","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=384,height=165,left="+(window.screen.availWidth-476)/2+",top="+(window.screen.availHeight-300)/2);
//   window.showModelessDialog('222.htm', self, 'dialogHeight=130px;dialogWidth=280px;center=yes;status=no;help=no;statusbar=no;scroll=no;');
   }
  </script>
<INPUT    ONCLICK="javascript:newopen_m()" TYPE=button VALUE="设置" NAME=button3>

解决方案 »

  1.   

    window.open应该就是弹出一个新的窗口,那个<base target="_self" />是用来控制form表单提交的
      

  2.   

    这是IE自己处理的,当你把地址栏隐藏的时候,它会在标题栏中显示URL
      

  3.   

    这种效果可以吗<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <style>
    #fullDiv{background:#ccc;filter: alpha(opacity=70); moz-opacity: 0.70; opacity: 0.70;}
    #Windows,#Windows2{display:none;width:450px;border:3px solid #F7D59D;background:#fff;top:0;}
    </style>
    <script>
    function alertWindow(id){
    var sWidth = document.documentElement.clientWidth ;
    //var sHeight = window.innerHeight ;
    var fullDiv = document.createElement('div');
    fullDiv.setAttribute("id","fullDiv");
    fullDiv.style.position = 'absolute';
    fullDiv.style.top = '0';
    fullDiv.style.left = '0';

    if (document.body.clientHeight) {
    var sHeight = document.body.clientHeight + "px";
    }
    else if (window.innerHeight){
    var sHeight = window.innerHeight + "px";
    }
    fullDiv.style.height=sHeight;
    fullDiv.style.width=sWidth + "px";
    fullDiv.style.zIndex = '1000';
    document.body.appendChild(fullDiv);

    var id = document.getElementById(id);
    id.style.display = 'block';
    id.style.position = 'absolute';
    id.style.zIndex = '1001';
                    id.style.left = (document.body.clientWidth - id.offsetWidth) / 2 + document.body.scrollLeft;
                    id.style.top = (document.body.clientHeight - id.offsetHeight) / 2 + document.body.scrollTop;
    }
    </script>
    </head>
    <body>
    <input type="button" value="窗口1" onclick="alertWindow('Windows')" />
    <input type="button" value="窗口2" onclick="alertWindow('Windows2')" />
    <p>无标题文档</p>
    <div id="Windows" style="display: none">111111111111111111111</div>
    <div id="Windows2" style="display: none">222222222222222222222</div>
    </body>
    </html>