Created
November 3, 2012 18:32
-
-
Save edinella/4008209 to your computer and use it in GitHub Desktop.
Native fullscreen javascript api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener("click", function(){ | |
var el = document.documentElement; | |
var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen; | |
rfs.call(el); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment