cachaito
11/18/2014 - 11:44 AM

Check browser function availability

var requestMethod = element.requestFullScreen || element.webkitRequestFullscreen || element.mozRequestFullScreen || element.msRequestFullScreen || element.msRequestFullscreen;

if (requestMethod) {// Native full screen.
  requestMethod.call(element);
}