snippet library logo
in category
Javascript / Browser / Fullscreen
Snippet details
ID: 89
Viewed: 1520
Added: 2002-02-25
Version:
View Demo

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
This little script will make the window fullscreen but only as big as the users resolution.

Browser: IE4+, NS4+

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: snippet

<!---Head--->
<SCRIPT LANGUAGE=javascript1.2>
<!--

function fullScreen(){
    if(document.all){
        window.moveTo(0,0)//force client to full screen
        window.resizeTo(screen.availWidth, screen.availHeight)
    }
    else{
        window.moveTo(0,0)
        window.outerWidth = screen.availWidth
        window.outerHeight = screen.availHeight    
    }    
}
//-->
</SCRIPT>

<!---Body--->


<BODY onload="fullScreen()">

<P>Try this out for size. </P>






No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.