2

I'm opening a child window through the parent window, and I want the child window to be displayed in full-screen mode.

Andreas Köberle
  • 106,652
  • 57
  • 273
  • 297
user254582
  • 121
  • 1
  • 3
  • 12
  • 1
    Who honestly downvoted this question lol? It's a valid question for someone who doesn't realize the security implications. I'm upvoting as it's a fair and properly phrased question. – KP. Jan 28 '10 at 14:06

1 Answers1

3

There is no way to maximize the browser window to full-screen with JavaScript. This is considered a security restriction.

Sources:


The only workaround is to change the window size to fill the whole screen, as in the following example:

window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);

However note that this is not really full-screen mode -- just a maximized window.

Community
  • 1
  • 1
Daniel Vassallo
  • 337,827
  • 72
  • 505
  • 443