views:

225

answers:

3

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

How do I emulate pressing F-11 in a browser using Javascript?
(I assume it will be different in Chrome,IE and FF?)

+3  A: 

You can't. Browsers do not expose an API that makes this possible.

David Dorward
+3  A: 

This used to be possible (anybody remember "chromeless windows" in IE4 or 5? Those were brilliant!) but isn't any more for security reasons.

Almost all browsers come with a "Kiosk mode" (Internet Explorer e.g. using iexplore -k on the command line) that enables full-screen browsing but obviously, this has to be initiated on the client's end.

Pekka
A: 

Using JS, - move the window to 0,0 make the width the same as the screen width, make the height same height as the page.

Glycerine