Javascript Fullscreen API webkit


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if (this.webkitRequestFullScreen){
  2. document.documentElement.webkitRequestFullScreen ();
  3. }else{
  4. alert('Browser not supported. You need to install the latest WebKit (for example Chrome 15) in order to use the full-screen API.');
  5. }

URL: http://peter.sh/2011/01/javascript-full-screen-api-navigation-timing-and-repeating-css-gradients/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.