一 參數
alwaysLowered|yes/no|指定窗口隱藏在所有窗口之後
alwaysRaised|yes/no|指定窗口懸浮在所有窗口之上
depended|yes/no|是否和父窗口同時關閉
directories|yes/no|Nav2和3的目錄欄是否可見
height|pixelvalue|窗口高度
hotkeys|yes/no|在沒菜單欄的窗口中設安全退出熱鍵
innerHeight|pixelvalue|窗口中文檔的像素高度
innerWidth|pixelvalue|窗口中文檔的像素寬度
location|yes/no|位置欄是否可見
menubar|yes/no|菜單欄是否可見
outerHeight|pixelvalue|設定窗口(包括裝飾邊框)的像素高度
outerWidth|pixelvalue|設定窗口(包括裝飾邊框)的像素寬度
resizable|yes/no|窗口大小是否可調整
screenX|pixelvalue|窗口距屏幕左邊界的像素長度
screenY|pixelvalue|窗口距屏幕上邊界的像素長度
scrollbars|yes/no|窗口是否可有滾動欄
titlebar|yes/no|窗口題目欄是否可見
toolbar|yes/no|窗口工具欄是否可見
Width|pixelvalue|窗口的像素寬度
z-look|yes/no|窗口被激活後是否浮在其它窗口之上
·二 如何監控瀏覽器關閉事件等。。window.onunload(),瀏覽器頁面關閉時出發的事件
window.onbeforeunload();瀏覽器頁面關閉之前觸發
window.onload();頁面加載時
示例:
<script type="">
window.onbeforeunload = function () {
if (confirm("確認要關閉嗎?")) {
window.top.opener = top;
window.top.open('', '_self', '');
window.top.close();
}
else {
return false;
}
}
</srcipt>