Exit full screen mode programmatically

I understand why browsers will disallow websites from programmatically making the browser full screen. However, users generally expect the "esc" button to come out of fullscreen mode, and browsers simply don't.

Is there a way to force the browser to exit full screen mode.

Thanks.

+2
javascript


a source to share


1 answer


Well, since F11 seems to be the established way (at least in FF), how about a key listener that triggers F11 whenever it receives an ESC?



0


a source to share







All Articles