Chrome fullscreen

I am currently working on a private web application that will not be released to the public. It is relatively simple and works in Google Chrome.

Does anyone have a solution to force the browser to enter Full Screen Mode when the DOM is ready? I thought to just mimic the keypress of the F11 key, but I don't know if this is possible.

Does anyone have a jQuery solution other than resizing the window to an available width and hiding navigation (not an ideal solution).

+8
javascript jquery google-chrome
source share
5 answers

As stated by others, this is not possible for the obvious reasons already mentioned.

Although, since this is a local site, why don't you just create a Chrome shortcut for it in full screen mode:

Create a shortcut for Chrome:

 "C:\Users\techiecorner\AppData\Local\Google\Chrome\Application\chrome.exe" --kiosk http://www.example.com 

http://www.techiecorner.com/1941/how-to-auto-start-chrome-in-full-screen-mode-f11-everytime/

UDPATE

Currently (HTML5) there is a proposal for a full-screen API. To use this, you can do something like:

 // feature detection if (typeof document.cancelFullScreen != 'undefined' && document.fullScreenEnabled === true) { // mozilla proposal element.requestFullScreen(); document.cancelFullScreen(); // Webkit (works in Safari and Chrome Canary) element.webkitRequestFullScreen(); document.webkitCancelFullScreen(); // Firefox (works in nightly) element.mozRequestFullScreen(); document.mozCancelFullScreen(); // W3C Proposal element.requestFullscreen(); document.exitFullscreen(); } 

See official specifications for details.

+16
source share

This is most likely impossible, I would consider it a security risk if it were.

If you have control over the environment, you can do this using AppleScript on a Mac. Not sure about Windows.

0
source share

I doubt it is possible (not considering browser extensions).

Browsers usually do not allow this access to their window. In fact, modern browsers do not even allow you to resize the current window (only if it is a popup).

If this is important for your application, you should display a message to the user, telling him to press F11 when the browser is not in full screen mode .

0
source share

It cannot do this, because you are trying to manipulate a real program running in the OS. You can manipulate anything in a browser window, but not outside.

0
source share

It's a little late, but it gives you some experimental access to fullscreen aps. You can simulate a click event and make it shoot.

https://github.com/martinaglv/jQuery-FullScreen

A jQuery 1.7 plugin that wraps around a full-screen API and works with various browser differences. Works in FF 10, Chrome and Safari. This is useful for presenting users with an easier to read version of your web pages or for scaling and elements.

0
source share

All Articles