Her

Home Web Programming JavaScript Full Screen

Full Screen

Author: Kyscorp.com Author's URL: www.kyscorp.com More by this author

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!