Firefox : Force full-screen mode from webpage

后端 未结 2 2022
后悔当初
后悔当初 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/

    0 讨论(0)
  • 2021-01-28 19:14

    Can't be done if you just have control of the webpage. Controls in the webpage cannot cause changes in the browser instance itself.

    It would be a security issue if that were allowed. You could look into writing a Firefox extension to do that, as they have more access to the browser instance itself.

    You shouldn't look at trying to hide the firefox menu controls. That seems like a flaw in your problem-solving approach.

    0 讨论(0)
提交回复
热议问题