1

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

Below the sample codes:

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

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.

Noam Hacker
  • 4,233
  • 7
  • 32
  • 53
Dane
  • 173
  • 1
  • 4
  • 15

1 Answers1

1

Try this

<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> 
Jacob
  • 13,975
  • 58
  • 197
  • 309