window.open(htmlurl,"newwin","location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=280");

解决方案 »

  1.   

    window.open ('index.aspx ',null , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0,height=600,width=800')
      

  2.   


    能不能给个HTML文件呢?谢谢.
      

  3.   

    得做个转换
    假设你要打开的页面是WebForm1.aspx
    你可以先设置一个起始页default.htm,在default.htm里自动打开WebForm1.aspx并关闭自己
    default.htm页代码如下:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY onload="window.open('WebForm1.aspx',null,'toolbar=yes,menubar=no,status=yes,location=no,resizable=yes,scrollbars=yes');window.opener=null;window.close();">
    </BODY>
    </HTML>