window.open("Sample.htm",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");

解决方案 »

  1.   

    如题,比如一个窗口叫sample.htm;打开sample.htm窗口,sample.htm就没有工具条,菜单栏等等...不从别的页面跳过来
      

  2.   

    Close self and open new
      

  3.   

    window.open("menu.htm","Menu","width=1015,height=710,top=0,left=0,scrollbars=yes,resizable=no,menubar=no,toolbar=no,location=no");
      

  4.   

    window.open("test.htm", null,"SCROLLBARS=0,MENUBAR=0,RESIZABLE=1,STATUS=0,WIDTH=1010,HEIGHT=650,TOP=0,LEFT=0");
      

  5.   

    1.asp
    <%@language=vbscript%>
    <%response.buffer=false%>
    <%
    username=1//request.querystring("username")
    pass=1//request.querystring("pass")
    %>
    <html><head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>a</title>
    <script language=javascript>
    function openwin() 
    {
    var win = window.open("2.asp?username="+input.username.value+"&password="+input.password.value+"","new","left=0,top=0,width="+(screen.availWidth)+",height="+(screen.availHeight-22)+",toolbar=no,menubar=no,Status=no,scrollbars=yes,resizable=yes,copyhistory=no,dependent=no");
    win.moveTo(-4,-4);
    win.focus();
    return true;
    }
    </script></head><body >
    <OBJECT id=hh3 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <PARAM NAME="Command" VALUE="Close"></OBJECT>
    <form name="input" target="new">
    <table border="0" width="100%" height="332">
        <td  width="166">
        <input  name="username" value=<%=username%> size="25" type="text" > </td>
        <td  width="166">
        <input name="password" value=<%=pass%> size="25" type="password" > 
        </td>
    </table>
         
    </form> 
       
    <script>
    hh3.Click()
    openwin()
    </script></body></html>//////////////////////////////////////////////
    2.asp
    <%@language=vbscript%>
    <%response.buffer=false%><html><head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    </head><body>
    <%
    username=request.querystring("username")
    password=request.querystring("password")
    response.write(username)
    response.write"<br>"
    response.write(password)
    %>
    </body></html>
      

  6.   

    window.open(Sub_win.htm','','resizable=0,scrollbars=0,status=0,menubar=no,toolbar=no,location=no, menu=no','1')
    最后的1表示新窗口不会作为新窗口加入到历史记录中 
    <SCRIPT LANGUAGE="javascript"> js脚本开始; 
    window.open 弹出新窗口的命令; 
    'page.html' 弹出窗口的文件名; 
    'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替; 
    height=100 窗口高度; 
    width=400 窗口宽度; 
    top=0 窗口距离屏幕上方的象素值; 
    left=0 窗口距离屏幕左侧的象素值; 
    toolbar=no 是否显示工具栏,yes为显示; 
    menubar,scrollbars 表示菜单栏和滚动栏。 
    resizable=no 是否允许改变窗口大小,yes为允许; 
    location=no 是否显示地址栏,yes为允许; 
    status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许; 
    </SCRIPT> js脚本结束