2009-09-21 [JavaScript][document] 開啟瀏覽器視窗後最大化視窗 7001 0 JavaScript 摘要:[JavaScript][document] 開啟瀏覽器視窗後最大化視窗 //視窗最大化 //將視窗左上端點位置移到螢幕最左上角 top.window.moveTo(0, 0); //視窗大小重新調整 if (document.all) { top.window.resizeTo(screen.availWidth, screen.availHeight); } else if (document.layers || document.getElementById) { if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) { top.window.outerHeigh = screen.availHeight; top.window.outerWidth = screen.availWidth; } } documentJavaScript 回首頁