1

Possible Duplicate:
How to make in Javascript full screen windows (stretching all over the screen)

hi

i am working on a web site and i need to create a button to make the browser full screen

like when i press "f11"

how can i do that using javascript ?

Community
  • 1
  • 1
Muhamad Bhaa Asfour
  • 1,075
  • 3
  • 22
  • 39
  • @richsage : Look at the answer below. I have already provided same link. – Saurabh Gokhale Mar 06 '11 at 12:51
  • (similar) [Is there a way to make HTML5 video fullscreen?](http://stackoverflow.com/questions/1055214/is-there-a-way-to-make-html5-video-fullscreen) albeit there is [::webkitEnterFullScreen](http://trac.webkit.org/changeset/50893) – mario Mar 06 '11 at 12:54

1 Answers1

-1

short answer : you can't, javascript is used to modify the page, not control the browser

long answer : maybe browsers have some kind of API you can access to do this, but this would be different for each one of them.

krtek
  • 26,334
  • 5
  • 56
  • 84