Max window when webpage load
resizeTo(screen.availWidth+8,screen.availHeight+8,moveTo(-4,-4))
更为彻底
<script>
function omiga_window()
{
window.open("main.html","","fullscreen=1,menubar=0,toolbar=0,directories=0,location=0,status=0,scrollbars=0");
}
</script>
<body onload="omiga_window();" onblur="self.close();" scroll="no" />
最终版[经测试并不稳定,改用方法一,无法定制是否显示相关栏 ]
function omiga_window()
{
var openURL = "main.html";
window.open(openURL, "HMSAJAX", "menubar=1,resizable=1,toolbar=0,directories=0,location=0,status=0,scrollbars=0");
// CZ the webpage you are viewing is trying to close the window
window.open('', '_self', '');
window.close();
}
<body onload="omiga_window();" scroll="no" />
如果有更好的解决方案, 希望朋友们能指出, 不甚感激.