adv banner
Web Programming  Home Web Programming JavaScript Full Screen
rss

Full Screen

Author: 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!



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Full Screen"