width=screen.Width;
height=screen.height

解决方案 »

  1.   

    to youbest(冲天飞豹) :新窗口的长宽是在窗体里面resize的时候指定的,希望能在open的时候得到长宽的值。
    to zwztu() :你说的那个是屏幕的长宽,而不是窗口的
      

  2.   

    alert(hWind.document.body.clientWidth);
     alert(hWind.document.body.clientHeight);
      

  3.   

    to sor(鬼梁):alert(hWind.document.body)------->null
      

  4.   

    測試通過,彈出200<input type=button value=open onclick="hWnd=open('1.htm','','width=200,height=200')">
    <input type=button value=getwidth onclick="alert(hWnd.document.body.clientWidth)">
      

  5.   

    我是先hWind=window.open()以后才alert(hWind.document.body)的!
      

  6.   

    var o = window.open('t2.htm',null ,'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    alert( o.window.document.body.clientWidth );
    alert( o.window.document.body.clientHeight );
      

  7.   

    你就用下面这段代码:
    <script>
    a=window.open("about:blank");
    alert(a.window.document.body.clientWidth);
    </script>
      

  8.   

    个人建议还是使用函数传递的方式彻底解决这个问题…… 我试了一下sor(鬼梁)的方法,不知道为什么,第一次还能运行,从第二次开始就又是null了…… 新手,不知道为什么啊……