IE也有吧,完全控制啊!!
通过window对象的open方法啊???
不知有没有误会大哥您的意思?????????????

解决方案 »

  1.   

    to yeefly:是的,整窗口的大小.
    to einyu:得到本页的窗口大小,:_)
      

  2.   

    IE 下能取得 screen.width,navigator.availWidth,完整的不知用什么对象了
      

  3.   

    screen只能得到屏幕的大小,而不是窗体
      

  4.   

    window.open(a.html,"","toolbar=no,directories=no,menubar=no,resizable=yes,width=580,height=250,left=100,top=20,scrollbars=yes");
      

  5.   

    hoho 俺也来凑热闹
    CRect rect;
    GetClientRect(&rect);rect.left,rect.right,rect.top,rect.bottomhoho,就来了,当然,需要ActiveX支持,嘿嘿,我也无聊,变态一把,陪fason玩。虽然这家伙一直不LIAO我,亏的我给好玩的让他看,哼!
      

  6.   

    一种思路,仅适用于非最大化的窗口,而且没用尺量过准不准确(0_0):
    <script>
    function getSize(){
    var sHtml='<object id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="MAXIMIZEm"></object>';
    if(!document.getElementById("max"))document.body.insertAdjacentHTML("AfterEnd",sHtml);
    max.Click();
    var w=screen.width-document.body.clientWidth;
    var h=screen.height-document.body.clientHeight;
    max.Click();
    alert("Width:"+(document.body.clientWidth+w)+"\n"+"Height:"+(document.body.clientHeight+h))
    }
    </script>
    <button onClick="getSize()">Test</button>不过觉得open一个容器测试它的边框工具栏和菜单所占的尺寸比较保险
      

  7.   

    <script language="JScript" for="window" event="onload">
    var w=200,h=200,h1=document.body.offsetHeight,w1=document.body.offsetWidth;
    window.resizeTo(w,h);
    var nw=w-(document.body.offsetWidth-w1),nh=w-(document.body.offsetHeight-h1);
    window.resizeTo(nw,nh);
    alert("Window Width:"+nw+"\n\nWindow Height:"+nh);
    </script>
      

  8.   

    呵呵,bc,看看我之前写的代码: 
    <script defer>
    function showWH(){
    if (document.all){
    cW=document.body.offsetWidth
    cH=document.body.offsetHeight
    window.resizeTo(500,500)
    barsW=500-document.body.offsetWidth
    barsH=500-document.body.offsetHeight
    wW=barsW+cW
    wH=barsH+cH
    window.resizeTo(wW,wH)
    }
    else {
    wW=window.outerWidth
    wH=window.outerHeight
    }
    alert(wW+' '+wH)
    }
    showWH();
    </script>
      

  9.   

    哦?我尝试过了,如果不resize,似乎好像不太可能计算出来你之前这样写,我等着看之后的