Place the following script in the <HEAD> </HEAD> tag of the document you want to be full screen size. It will open the document to full screen size.
<script language="JavaScript1.2">
<!--
/*
Auto Maximize Window Script- By Nick Lowe (
[email protected])
For full source code, 100's more free DHTML scripts, and Terms Of Use
Visit
http://www.dynamicdrive.com
*/
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.avail Height);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.wi ndow.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
-------------------------------------------------------
Quote:
quote:Originally posted by benburrows
Does anyone know if it is possable using javascript (or other method) to set the INTERNAL dimensions of the browser? eg my web site is exactly 800*600 and does not streach to fill extra space and I want to resize the browser to show it with no extra space beside or below. Using Window.resiseto(800,600) sets the outer size of the browser and hence the space left to display the page contents is much less than that. I could allow for that but if there are diferent sized toolbars etc on diferent browsers then I am back where I started.
Any sugestions apreciated.
Thanks
|