Posted By

alexteg on 09/23/11


Tagged

javascript safari api fullscreen chrome webkit


Versions (?)

Javascript Fullscreen API webkit


 / Published in: JavaScript
 

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

  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. }

Report this snippet  

You need to login to post a comment.