下面是我写的代码:
Response.Write("<script language=javascript> window.open('wl.htm',null,'left=100,top=100,directories=no,toolbar=no,heigth=290,width=500,status=no,resizable=no,scrollbars=no,location=no');</script>");
我把heigth改到200以下,值设成100或是50或是20,高度都不再变化了,怎么弄啊?高手们啊?

解决方案 »

  1.   

    给你一个JS函数,打开窗口居中<script language="javascript">
    function openwndex(strUrl,strWndName,width, height) 
    { xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ))
    {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height) / 2;
    } theproperty= "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "left=" + xposition + "," //IE
    + "top=" + yposition; //IE  wndChild = window.open(strUrl,strWndName,theproperty);
    wndChild.parentwnd = this;

    }
    </script>
      

  2.   

    是不是你的单词写错了 ?
    height吧