The code you've posted is close but this function will only maximize the width and height of the screen. I am looking for a code that will resize to true fullscreen(all you will see is the content of the page and no address bar, toolbars, or status bar will be availible. I can open a fullscreen window useing a code like this:
<html>
<head>
</head>
<body onLoad="window.open('indexh.html', 'index', 'fullscreen'); ">
</html>
But this will leave two windows open. I have tried combining this with onLoad="self.close()". But this will prompt the user to close the window, and thats just annoying. I've also tried to find ways to minimize the first window automatically after opening the second but failed(if anyone else can, toss it in).
I've seen others try things like this:
<script type="text/javascript">
function max()
{
var obj = new ActiveXObject("Wscript.shell");
obj.SendKeys("{F11}");
}
</script>
</head>
<body onload="javascript:max()">
But most people don't like having thier computers invaded. And this aproach will prompt you relentlessly as well as not providing a true full screen effect(you can access the adress bar and tool bars). Got any other ideas?
[edited by: Baxter30 at 1:33 am (utc) on Nov. 23, 2008]