JS新开窗口最大化

在JS处理中,有时候我们需要强制新打开的页面最大化,此时我们可以使用JS来控制其效果。代码如下:
JavaScript语言: JS新开窗口最大化
<script language=“javascript”>
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
window.onresize = function(){
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
</script>
相关文章: 

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

还没有评论。

发表评论

(必填)

(必填)