链接打开后如何自动最大化窗口屏幕? [英] How to auto maximize window screen when link is opened?

查看:83
本文介绍了链接打开后如何自动最大化窗口屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在打开链接时将浏览器设置为自动最大化窗口屏幕吗?

I am wondering how to set the browser to auto maximize the window screen when a link is opened?

在示例代码下面:

<a href="http://www.w3schools.com"  target="_blank">Visit W3Schools</a>

问题是它总是像小屏幕一样打开.我想要的是始终保持完整的Windows屏幕.我正在使用JSP页面作为前端.

The things is it is always opening as a small screen. What I want is a full windows screen at all times. I am using a JSP Page as a front end.

推荐答案

尝试一下

<html>
<head>
<title></title>
<script type="text/javascript">
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=yes,location=yes,resizable=yes');
}
</script>
</head>

<body>
<a href="javascript:void(0);" onclick="fullScreen('http://www.w3schools.com');">Visit W3Schools</a>
</body>
</html> 

这篇关于链接打开后如何自动最大化窗口屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆