2

I'm developing a web application and to improve the user experience I wish to switch the browser in fullscreen mode. Any ideas how to do this (except asking the user to do it himself)?

SileNT
  • 623
  • 6
  • 11
  • 1
    Possible duplicate of http://stackoverflow.com/questions/2121475/javascript-automatically-maximize-browser-window-and-switch-to-full-screen-mode – bas Jul 01 '10 at 07:41

4 Answers4

4

Its possible using the FullScreenApi, which is supported at least in Chrome 27, FF 21, Safari 5.1 and Opera 16. It will be also supported by IE 11. There is also a minor wrapper for API.

Andreas Köberle
  • 106,652
  • 57
  • 273
  • 297
1
Javascript.resizeTo(screen.width,screen.height)
NM.
  • 1,909
  • 1
  • 13
  • 21
0

Its not possible. If you really want it, you have to open a new window:

var win = window.open('html.file', 'Name', 'fullscreen=true');

Digital Human
  • 1,599
  • 1
  • 16
  • 26
  • Indeed this is not possible for security reasons. I don't wish to do automatic fullscreen, but triggering by clicking on a button. Seems that the only way to enter fullscreen mode is by pressing F11. – SileNT Jul 07 '10 at 00:22
0

You can't do full screen but you can just resize the window to the available width and height of the screen.

spinon
  • 10,760
  • 5
  • 41
  • 59