Is there a way to detect when a browser exits full screen mode using javascript?
Background info:
I am working on an HTML5 Player and have a button to enter full screen.
When in full screen mode, I want the toolbar (for the player) to be hidden.
Then when user exits full screen mode I want the toolbar to be visible again.
I am able to detect when the fullscreen button I added is clicked, and when escape key is pressed.
However, I am not able to determine when the browser message "Exit Full Screen" is clicked.
Problem:
I need to know how to add an event or somehow detect when a user clicks
"Exit Full Screen (Esc)" when in full screen mode so I can get the player to
show my toolbar. Adding an event to the escape key did not fix my problem.