I was trying to call a function to make the screen in full screen mode again , when ESC is pressed.(that is when ESC is pressed the screen goes normal mode.I need to make it again in full screen).Identified the ESC click event called the full screen function again like,
$(document).ready(function (){
var screen_change_events = "webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange";
$(document).on(screen_change_events, function () {
if (!window.screenTop && !window.screenY) {
$("iframe")['webkitRequestFullScreen'](); // Identified that ESC is triggered.So need to make it again fullscreen mode
}else{
//alert("no")
}
});
});
But getting the below error.
Uncaught TypeError: $(...).webkitRequestFullScreen is not a function