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:
<body onLoad="window.open('indexh.html', 'index', 'fullscreen'); ">
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:
var obj = new ActiveXObject("Wscript.shell");
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]