Internet Explorer full screen mode?

32,440

Solution 1

This will simply send F11. Will be good enough for IE with weak security settings. This is something you might want to keep for internal use only, though:

<script type="text/javascript">
    function max() {
        var wscript = new ActiveXObject("Wscript.shell");
        wscript.SendKeys("{F11}");
    }
</script>

Solution 2

Here is some information regarding that problem: http://www.htmlgoodies.com/beyond/dhtml/article.php/3470521

And to sum up the info, paste this bit of JS into the head of the code.

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

Solution 3

If you have control of the machine, such as in a kiosk installation, you can launch IE in "kiosk mode" by running a batch file and supplying a URL: (save this string and name as "launch.bat")

start iexplore.exe -k "c:\Kiosk\default.htm"

or

start iexplore.exe -k "http://www.google.com"

Solution 4

You could add a "best viewed in full-screen mode" notice in your page - that would work, too.

[I want to programatically] fullscreen the currently viewed [window]

You see, what you're asking for is not possible in most browsers, and that is a Good Thing™

Imagine the possibilities - you enter a website, it programatically switches you to fullscreen and keeps you there if you try to go back. Living with uncloseable pop-ups was bad enough, manipulating the browser programatically would be a (security, usability, what-have-you) nightmare.

Share:
32,440
Admin
Author by

Admin

Updated on July 23, 2022

Comments

  • Admin
    Admin almost 2 years

    I am building a web based free dynamic news reader (aka "autoplay" feature), that you can test it from here:

    http://www.fivetechsoft.com/news

    and I would like to implement a button to fullscreen it. Any hints?

    Please notice that only IE is supported by now. Other browsers support comming soon.

  • Admin
    Admin over 15 years
    uugh. Solution works but if I saw that on a website on the internet I would quickly get off and never return.
  • Hitesh
    Hitesh over 8 years
    Can this be used for video player(Jwplayer) for own custom fullscreen button (Check here : stackoverflow.com/q/33842428/1877909)