我在机械工业出版社出版的javascript使用详解上查到的center yes/no/1/0 适用ie4以上版本

解决方案 »

  1.   

    open没有这个属性,showModalDialog有自己做吧<script>
      var x = window.screen.width;
      var y = window.screen.height;
      var width = 400;
      var height = 400;
      
      x = (x-width)/2;
      y = (y-height)/2;
      window.moveTo(x,y);
      window.resizeTo(width, height);
    </script>
      

  2.   

    var x=window.screen.width;
      var y=window.screen.height;
       x=(x-500)/2;
       y=(y-200)/2; 
      var newWin=window.open("ivoxDialog.htm","ivoxDialog","height=200, width=500,left=200,toolbar=no,menubar=no,location=no"+",top="+y+",left="+x);
      

  3.   

    Sorry! 我上面寫的有點問題
    var x=window.screen.width;
      var y=window.screen.height;
       x=(x-500)/2;
       y=(y-200)/2; 
      var newWin=window.open("ivoxDialog.htm","ivoxDialog","height=200, width=500,toolbar=no,menubar=no,location=no"+",top="+y+",left="+x);
      

  4.   

    所有的属性都在这里:(IE和NS)
    http://go6.163.com/colorweb/js/mengxhwindow.htm