Log in

View Full Version : HTML - how to switch browser screen mode to fullscree-mode?


Scorpius
21st October 2005, 13:52
Hello!

The best solution by this far i've found is this:

<script>
<!--
window.open("bigpage.html","fs","fullscreen,scrollbars")
//-->
</script>

but this do not do what I want, since it open new window. What I want is that the current window (index.html) will change its screen mode to fullscreen (i.e. kiosk-mode). Just like you'd press F11 in your web browser.

THX in advance.

Sirber
22nd October 2005, 17:42
Thank god you can't. Imagine all the spammers going fullscreen :devil:

Scorpius
22nd October 2005, 19:02
Ok, but how about this one: window.open opens new (fullscreen) window and then the original window closes itself somehow. I found the code to do this but it did not work... any suggestions?

sysKin
23rd October 2005, 10:38
Why would you like to do that? Browsers have their buttons for a reason.

The code will probably not work because browsers don't let websites close them. In IE, this usually results in a question. Firefox at the other hand lets you close windows which you created, and completely ignores requests to close windows which you didn't create.

Just add this text: to view my website the way I like it, press f11 :)

Scorpius
23rd October 2005, 13:34
Ok, thanks for help. (I made slideshow and my pictures are too big if you have resolution of 1024*768, that was the reason....)

unmei
23rd October 2005, 15:22
If you actually can close the first window, do open the new window before you close the first. First closing the parent and only then opening the new will work in IE but not in Firefox (there it just closes the first and the new doesnt come up).
That is, do
window.open(..); window.close();
not
window.close(); window.open(..);