Martins
12-20-2011, 11:50 AM
I know this has only just been introduced lately, so if I use it, how can I test if a browser supports it?
If I do something like the following, I believe I am testing if the browser is in full screen mode not whether or not the browser offers the functionality?
function FullScreenSupported() {
if (document.webkitIsFullScreen) {
alert("webkitIsFullScreen is supported");/
}else{
alert("webkitIsFullScreen is not supported");
}
}
Mozilla’s introduction to full screen mode is here:
https://developer.mozilla.org/en/DOM/Using_full-screen_mode#AutoCompatibilityTable
Thanks.
If I do something like the following, I believe I am testing if the browser is in full screen mode not whether or not the browser offers the functionality?
function FullScreenSupported() {
if (document.webkitIsFullScreen) {
alert("webkitIsFullScreen is supported");/
}else{
alert("webkitIsFullScreen is not supported");
}
}
Mozilla’s introduction to full screen mode is here:
https://developer.mozilla.org/en/DOM/Using_full-screen_mode#AutoCompatibilityTable
Thanks.