只要在onLoad或body後面加上以下程式碼,開啟視窗時就會最大化。
window.self.moveTo(0,0)
window.self.resizeTo(screen.availWidth,screen.availHeight)
ex:
<html>
<script>
window.onLoad = function(){
window.self.moveTo(0,0);
window.self.resizeTo(screen.availWidth,screen.availHeight);
}
</script>
<body>
.....................
</body>
</html>
ex:
<html>
<body>
<script>
window.self.moveTo(0,0);
window.self.resizeTo(screen.availWidth,screen.availHeight);
</script>
</body>
</html>
沒有留言:
張貼留言