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 receives fullscreenchange event. note fullscreenchange event doesn't provide information whether document entering or exiting full-screen mode, if document has non null fullscreenelement , know you're in full-screen mode.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -