<script>
window.open("somepage.htm","","width=100,height=100,resizable=0")
</script>

解决方案 »

  1.   

    我试了,resizable=0只能控制边框不能拉动,但还可最大化和恢复,我想使网页固定大小,不让其最大化。
      

  2.   

    无边的页面就是用open方法打开一个全屏窗口,然后用resizeTo方法将窗口变化到你所需要的尺寸,这时就会看到一个没有标题栏的窗口,一般还会给这个窗口加上一个"人造的"标题栏,并设定拖放事件,使其看起来更逼真。
    以上是我对孟老大的注释。其实还可以使用window.showmodalDialog或者window.showmodelessDialog方法打开一个页面,不仅可以没有最大最小按钮,还没有右键菜单和不相应IE快捷键。
      

  3.   

    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language = javascript>
    function openw(popUpURL){
    var ie = false; 
    var ns = false;
    if(parseInt(navigator.appVersion) >= 4){
    if(navigator.appName.indexOf("Microsoft") != -1) ie = true;
    if(navigator.appName.indexOf("Netscape") != -1) ns = true;
    }
    if (ie){
    var popUpSizeX=200;
    var popUpSizeY=200;
    var popUpLocationX=300;
    var popUpLocationY=200;
    var splashWin = window.open("",'','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
    splashWin.resizeTo(popUpSizeX,popUpSizeY);
    splashWin.moveTo(popUpLocationX,popUpLocationY);     
    splashWin.location=popUpURL;
    splashWin.focus();
    }
    if(ns){window.open(popUpURL,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");}
    }
    </script></head>
    <body bgcolor="#ffffff" topmargin="0" marginwidth="0" marginheight="0" leftmargin="0">
    <a href="#" onClick="openw('http://go.163.com/~colorweb')">打开</a>
    </body></html>
      

  4.   

    window.open("",'','
    fullscreen,
    toolbar,
    location,
    directories,
    status,
    menubar,
    scrollbars,
    resizable,
    copyhistory,
    width,
    height
    ')//重置大小