/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (this.webkitRequestFullScreen){ document.documentElement.webkitRequestFullScreen (); }else{ alert('Browser not supported. You need to install the latest WebKit (for example Chrome 15) in order to use the full-screen API.'); }
URL: http://peter.sh/2011/01/javascript-full-screen-api-navigation-timing-and-repeating-css-gradients/