Firefox : Force full-screen mode from webpage

后端 未结 2 2021
后悔当初
后悔当初 2021-01-28 18:44

I am developing a web-based database that needs to be opened through firefox web browser(because of some css3 elements). I want the page to open automatically in full screen mod

2条回答
  •  北海茫月
    2021-01-28 19:06

    You will want to look at Fullscreen APIs of the browser. If you accept a small request/info to the user in the application it can be done quite easily. You just can't force the user into Fullscreen mode against his will. This is good (for security reasons).

    http://hacks.mozilla.org/2012/01/using-the-fullscreen-api-in-web-browsers/

提交回复
热议问题