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,671
  • 7
  • 34
  • 55
Dane
  • 173
  • 2
  • 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
  • 14,463
  • 65
  • 207
  • 320