1. 程式人生 > >js 控制狀態列

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 名字不正確
}