• Making IE 5 run in Fullscreen with script?

    Home » Forums » Developers, developers, developers » Web design and development » Making IE 5 run in Fullscreen with script?

    Author
    Topic
    #362053

    Hi All

    This question is a two part question.

    1. Using script how can I force an HTML page open in IE 5 into a full screen mode like pressing ‘F11’ causes? At present I am using javascript, and using the open method of the window object and setting the ‘fullscreen = yes’ property. The problem with this is that the little navigation bar at the top doesn’t appear? Help?

    2. By using the java script:

    window.open(“main.html”, ‘main’, ‘location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=yes, fullscreen = yes’);

    I open a new window. Is it possible to just adjust the properties of the currently open window without having to open a new one? Can this be done with the answer to (1) above?

    Your help in this matter would be great! Thanks

    Viewing 1 reply thread
    Author
    Replies
    • #549474

      The second question is easy. As a developer, I work in 1024*860, but resize my current window periodically to see how an 800*600 user would see it. I have this as a shortcut on my IE links bar:

      java script:resizeTo(800,580)

      I’ll think about the first question.

      Hope this helps,

    • #549478

      Full-screen script here at The JavaScript Source

      • #549532

        Thanks for your replies.

        The solutions that you have given are exactly what I am at present doing. When you use the ‘fullscreen=yes’ property, the IE window does open in fullscreen – but there is not toolbar at the top.

        Can I get the toolbar while in fullscreen mode?

        jayden

        • #549603

          I think the definition of full-screen means you get no toolbars.

          Does this snippet from http://www.js-examples.com help?

          full screen
          
          
          function doIt()
          {
            var y=window.screen.height;
            var x=window.screen.width;
            window.moveTo(0,0);
            window.resizeTo(x,y);
          }
          
          • #549669

            Hi Lief,

            Yes that is a better solution. smile

            When I refer to fullscreen mode with the toolbar, I’m referring to emulating what happens to the screen when you press F11 in IE (or select from the menu bar view, fullscreen).

            Ideally this is what I want to do.

            • #549702

              Point of interest, I do NOT return to any web address that mucks with resizing of my browser. To many webmasters are forcing their methods on the users. If you want happy users do not make any changes that affect the user. This is in the same class as “Pop ups and unders”.
              Just my 2cents

              DaveA I am so far behind, I think I am First
              Genealogy....confusing the dead and annoying the living

            • #549703

              Hi I completely agree under normal circumstances

              However, this is for ‘complete novices’ who would otherwise not know how to re-size their browsers – with an ‘application’ that requires a specific screen area to display optimally.

              Thanks for you comments though

            • #549706

              Point taken, thanks for listening.

              DaveA I am so far behind, I think I am First
              Genealogy....confusing the dead and annoying the living

            • #554900

              Hi – just browsing by…

              I don’t know whether this will work in script within HTML, but it does work from Powerpoint VBA (OLE) – i.e. you may need to experiment a bit?

              Below is a macro extracted from a PowerPoint presentation I did a couple of months ago. Basically the macro declares the “InternetExplorer” object (which controls a remote instance of the Internet Explorer application through OLE Automation), then switches IE into “TheatreMode” and finally navigates to a web page.

              **********************
              Sub Web_Slide()

              Dim IE As Object ‘ Declare Variable (“IE”) to hold the reference.

              Set IE = CreateObject(“InternetExplorer.Application”) ‘Set the InternetExplorer Object

              IE.TheaterMode = True ‘ Switch Internet Explorer to F11 mode

              IE.Navigate (“http://www.microsoft.com”) ‘ Navigate to a web page

              IE.Visible = True ‘ Set Browser to be Visible.

              Set IE = Nothing ‘ Release the Object Variable Reference

              End Sub
              ******************

              There are numerous events and methods associated with InternetExplorer object, here’s a few I’ve used…

              IE.FullScreen = True ‘ true fullscreen mode, with no menu bars, buttons, or toolbars.
              IE.Top = x ‘ set top left corner of window x number of pixels from top of screen.
              IE.Left = x ‘ as above, but from left of screen!
              IE.MenuBar = False ‘ Hide menu bar.
              IE.ToolBar = False ‘ Hide toolbar.
              IE.Height = 768 ‘Specify window height in pixels.
              IE.Width = 1024 ‘Specify window width in pixels.

              If you want the full list, drop me post via the lounge and I’ll e-mail you the necessary helpfile.

              Hope this helps?

              Cheers,

              Ade

    Viewing 1 reply thread
    Reply To: Making IE 5 run in Fullscreen with script?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: