js 控制状态栏

<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=no,status=no')    
  //写成一行    
  -->    
  </SCRIPT>    
   
  PS:参数解释  
//neo=window.open("AGD.html","_blank","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,top=0,left=0,width=1024,height=768"); 
   
  toolbar=no   是否显示工具栏,yes为显示;    
  menubar,scrollbars   表示菜单栏和滚动栏;    
  resizable=no   是否允许改变窗口大小,yes为允许;<BR>    
  location=no   是否显示地址栏,yes为允许;    
  status=no   是否显示状态栏内的信息(通常是文件已经打开),yes为允许    
 


2:
<HTML>
<HEAD>
<TITLE></TITLE>
<script language="JavaScript">
<!--function OpenWindow()
{
neo=window.open("http://www.blueidea.com","","fullscreen")
window.opener=null;
window.close();
                 neo.resizeTo(300,300);
                neo.moveTo(screen.Width/2-150,screen.Height/2-150);
}
//-->
</script>
</HEAD>
<BODY onload="OpenWindow()">
</BODY>
</HTML>



//打开全屏新窗口,自动关闭现在窗口无提示
function popups()
{
//neos=window.open("AGD.html","newwindow","fullscreen");
  neo=window.open("loginWindow.html","_top","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,top=0,left=0,width=1024,height=768");
//window.opener=null;
  neo.close();
  op=window.open("testac.html","_blank","status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,top=0,left=0,width=1024,height=768");
               // neo.resizeTo(300,300);
              // neo.moveTo(screen.Width/2-150,screen.Height/2-150);
              //请求不到AGD 名字不正确
}

你可能感兴趣的:(html)