user1471378
user1471378

Reputation:

Firefox : Force full-screen mode from webpage

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 mode. I dont want the user of the database to have access to the firefox menu items

Upvotes: 0

Views: 1853

Answers (2)

user1162623
user1162623

Reputation: 68

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/

Upvotes: 0

Anirudh Ramanathan
Anirudh Ramanathan

Reputation: 46788

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.

Upvotes: 1

Related Questions