Click to See Complete Forum and Search --> : Browser window open to full


bumsetofwheels
01-12-2003, 05:28 PM
Hello..


What I am trying to do is have my index.html web page load opening to full screen.

I've worked with the JS for opening another window:
<script>
<!--
window.open("bigpage.html","fs","fullscreen,scrollbars")
//-->
</script>
and closing it:
<A HREF="#" OnClick="window.close('fs')">Close window</A>

But that's not what I want.

The JS script only opens another window from an already existing window.

I want to start out with a full screen window...

Thanks for any help you may be able to give..

Dave

Zach Elfers
01-12-2003, 08:37 PM
You can resize a window:

window.resizeTo(width, height);
window.moveTo(0,0);

The problem with this is that people have different resolutions and screen sizes so this will be different from computer to computer. Besides, it doesn't look that great.

swon
01-12-2003, 08:43 PM
Zach's script is how to make it. For the fullscreen for any user you have to complete it with that:

var width = screen.availWidth;
var height= screen.availHeight;
window.resizeTo(width,height);
window.moveTo(0,0);