1

I tried How to make the window full screen with Javascript (stretching all over the screen),

but it's not working.

EDIT

I mean it should fill all of my computer by full-screen.

Community
  • 1
  • 1
user198729
  • 55,886
  • 102
  • 239
  • 342
  • in what way is it not working? on what browser(s) have you tried? Did you get any error messages? – nickf Jan 07 '10 at 13:52

1 Answers1

4

Like this:

alert("Please press F11");

There's no way to make an existing window completely fullscreen in Javascript.

The closest you can get is to open a popup window and pray that it doesn't get blocked by popup blockers, like this:

open("http://google.com", null, 
  "height=" + screen.availHeight + ",width=" + screen.availWidth + ",status=no,toolbar=no,menubar=no,location=no")
SLaks
  • 800,742
  • 167
  • 1,811
  • 1,896