javascript - Fullscreen API: Which events are fired? -
i need know (dom) events fired when user enter fullscreen mode via new fullscreen api. tried example snippet doesn't fire:
jquery('body').on('fullscreenchange', function() { alert("fired!"); });
your link shows answer...
when full-screen mode engaged, document contains full-screen element receives
fullscreenchange
event. when full-screen mode exited, document again receivesfullscreenchange
event. notefullscreenchange
event doesn't provide information whether document entering or exiting full-screen mode, if document has non nullfullscreenelement
, know you're in full-screen mode.
Comments
Post a Comment