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
JavaScript - An open source scripting language, it allows the creation of dynamic web page content. More JavaScript Tutorials: Featured Materials | Fresh Materials | More JavaScript Tutorials at LearnPHP.org

Reader's comments
comments Grandanet January 30, 2011 says:
Thank you for your share,t his actually solve my problem... many thx. Miami FL.
Reply
comments bhagat August 14, 2010 says:
this code is not working as f11 working
Reply
Add comments to "Full Screen"

Captcha