Javascript: webkitIsFullScreen property IE equivalent

烂漫一生 提交于 2019-12-12 14:49:23

问题


According to this documentation, Internet Explorer does not support something like webkitIsFullScreen or like mozFullScreen property. I need to read if browser is in full screen mode. Is there any way to get it on IE somehow? THANKS!


回答1:


Using IE11, an equivalent check would be:

document.msFullscreenElement !== null

Disclosure: I am on the team that worked on Microsoft's implementation of the Fullscreen API.



来源:https://stackoverflow.com/questions/20520140/javascript-webkitisfullscreen-property-ie-equivalent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!