How Can We Programmatically Enter And Exit The Fullscreen Mode In Javascript?
Here's documentation on exiting fullscreen mode. I used this code that I learnd to make the browser go fullscreen (it works), but my attempts to modify a version of it to exit full
Solution 1:
For entering the fullscreen there were some issues with the capitalization.
For the exiting you need to call it on the document
and not on the body
, and you also need to apply it correctly instead of calling the reference to the method..
so requestMethod.call(element);
for exiting as well.
See demo at http://jsfiddle.net/gaby/FGX72/show (tested on latest IE/Chrome/FireFox)
Post a Comment for "How Can We Programmatically Enter And Exit The Fullscreen Mode In Javascript?"