Keep fullscreen api in fullscreen after clicking on a link

为君一笑 提交于 2019-12-22 04:42:50

问题


I am using the HTML5 fullscreen API so users can view my website in fullscreen, however when a user clicks a link (such as a menu item) the user switches back to the normal browser mode. How can I keep the browser in fullscreen when the user clicks certain links? Preferably without having to convert the whole website to an AJAX page load system.


回答1:


It will not be possible to do this without converting to an AJAX loading system. When you navigate to a different page, the DOM tree is destroyed, but the element you are putting into fullscreen mode is part of said DOM tree.



来源:https://stackoverflow.com/questions/10720222/keep-fullscreen-api-in-fullscreen-after-clicking-on-a-link

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