views:

48

answers:

3

I'm creating a web-app for the upcoming Chrome Web-store... Is there a way to simulate F11 being pressed? Or simply a command that will make the current window go full screen (HTML / Javascript) ???

+2  A: 

You could open a new window at full screen, or resize the current window to be the size of the maximum resolution.

AFAIK, no JavaScript way to go full screen the F11 way.

Both options are very annoying.

Do you really want to annoy your potential buyers?

alex
+1. I hate websites/apps resizing my browser. If I need to resize it or fullscreen it I'll do it myself!
Azz
A: 

There is no way you can do with just pure javascript, but you could try and check Google Chrome's many APIs that may allow a fullscreen under webApp permissions.

vener
+1  A: 

Here are a couple of ways to do that:

I'd suggest, provide a popup asking the user if s/he wants to go full screen and then call this javascript accordingly.

KMan