window.open ("xxx.jsp", "newwindow", "height=600, width=900,top=0,left=0,toolbar =no, menubar=no, scrollbars=no, resizable=yes, location=no, status=yes"); //写成一行条一下它的属性,你看看可以不啊

解决方案 »

  1.   

    先来个例子在解释一下常用的参数
    例:
    <SCRIPT LANGUAGE="javascript"> 
      <!-- 
      window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no') //这句要写成一行!
      --> 
      </SCRIPT>  
      
      参数解释: 
      
      <SCRIPT LANGUAGE="javascript"> js脚本开始; 
      window.open 弹出新窗口的命令; 
      'page.html' 弹出窗口的文件名; 
      'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替; 
      height=100 窗口高度; 
      width=400 窗口宽度; 
      top=0 窗口距离屏幕上方的象素值; 
      left=0 窗口距离屏幕左侧的象素值; 
      toolbar=no 是否显示工具栏,yes为显示; 
      menubar,scrollbars 表示菜单栏和滚动栏yes为显示; 
      resizable=no 是否允许改变窗口大小,yes为允许; 
      location=no 是否显示地址栏,yes为允许; 
      status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许; 
      </SCRIPT> js脚本结束
     PS:在IE7中为了安全地址栏始终显示,但是如果页面设置为地址栏不显示那么其只能看不能编辑(微软这样做既保护了B端也保护了S端,妙)!
      

  2.   

    用window.open "最小化","最大化","关闭,始终会显示看到有人用div的做法,
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
    <title>原始窗口</title><style type="text/css"> 
    <!-- 
    body,td,th { 
    font-size: 12px; 

    body { 
    margin-left: 0px; 
    margin-top: 0px; 
    margin-right: 0px; 
    margin-bottom: 0px; 

    #lockWindow { 
    position:absolute; 
    text-align:center; 
    left:0px; 
    top:0px; 
    width:0; 
    height:0; 
    z-index:70; 
    background-color: #CCCCCC; 
    filter:alpha(opacity=60); 
    display:none; 

    #MsgWindow { 
    position:absolute; 
    text-align:center; 
    left:0px; 
    top:0px; 
    width:0; 
    height:0; 
    z-index:100; 
    display:none; 

    --> 
    </style> 
    <script language="javascript"> 
    function lockWindow(){ 
    var lockDiv = document.getElementById("lockWindow"); 
    var MsgWindow = document.getElementById("MsgWindow"); 
    document.title="窗口已锁定"; 
    lockDiv.style.width=document.body.scrollWidth; 
    lockDiv.style.height=document.body.scrollHeight; 
    lockDiv.style.display="block"; 
    MsgWindow.style.top=document.body.clientHeight/4; 
    MsgWindow.style.left=document.body.clientWidth/3.5; 
    MsgWindow.style.display="block"; 

    function unlockWindow(){ 
    var lockDiv = document.getElementById("lockWindow"); 
    var MsgWindow = document.getElementById("MsgWindow"); 
    document.title="窗口已解除锁定"; 
    lockDiv.style.width=0; 
    lockDiv.style.height=0; 
    lockDiv.style.display="none"; 
    MsgWindow.style.display="none"; 

    </script> 
    </head> <body> 
    <div align="center"> 
    <div id="lockWindow"> 
    </div> 
    <div id="MsgWindow"> 
    <table width="403" border="0" cellspacing="1" bgcolor="#3399FF"> 
    <tr> 
    <td width="399" height="25" align="center" bgcolor="#3399FF">点击按钮解除窗口锁定</td> 
    </tr> 
    <tr> 
    <td height="100" bgcolor="#FFFFFF">当系统开始发布任务的时候,弹出一个窗口锁定当前的页面,提示“正在发布...”并显示发布的进度。当点取消或者发布任务完毕的时候,解除锁定然后跳转到指定页面,如何实现这种效果?</td> 
    </tr> 
    <tr> 
    <td align="center" bgcolor="#FFFFFF"><input type="button" name="Submit" value="解除锁定" onclick="unlockWindow()"></td> 
    </tr> 
    </table> 
    </div> 
    <p>asdsad</p> 
    <p>sa</p> 
    <form id="form1" name="form1" method="post" action=""> 
    <label> 
    <textarea name="textarea" cols="80" rows="20"></textarea> 
    </label> 
    <p> 
    <input type="button" name="Submit" value="锁定窗口" onclick="lockWindow()"> 
    </p> 
    </form> 
    <p> </p> 
    <p> </p> 
    <p> </p> 
    <p> </p> 
    <p> </p> 
    <p> </p> 
    </div> 
    </body> 
    </html>不过我的页面是在frame中.只能使所在的frame的div锁定,怎么能使整个页面锁定呢.
      

  3.   

    你可以新建层,然后追加到iframe  父窗口的div上 ,  你试试