Your Ad Here

Full Screen


Full ScreenJavascript allows you to display a page in  full screen via a button, the script consists of 2 parts, the first one will be inserted between the <head> and </head> tags is:

<script language="javascript">
function fullscreen()
{
window.open('page.php','kyscorp','width='+screen.width+',height='+screen.height+',top=0,left=0');
}
</script>

The second will create the button and will be inserted in the place you want:

<form>
<input type="button" onClick="fullscreen()" value="Full Screen">
</form>

Click the button to see the result!



Author's URL: Kyscorp.com
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

Web programming � everything from the basics of visual design and architecture to the specifics of applications, graphics, and scripting. More Web Programming: Most Popular Materials | Fresh Materials | More JavaScript Tutorials at LearnPHP.org

Add comments to "Full Screen"

Only registered users can write comment

Reader's comments