We help IT Professionals succeed at work.

View Full Screen

Eamon
Eamon asked
on
I want to open a html file using explorer and view it as full screen with no menus or toolbars whatsoever
How can I do this And wht verisions of explorer can I do this In.

I know how to do this by clicking on the toolbars but I want the page to do it.
Comment
Watch Question

Try try this, it will open full screen mode on IE4+, and open a full screen window in other browsers ...

function fullscreen(file)
{
    // Only IE has fullscreen ...
    if (navigator.appVersion.indexOf("MSIE") != -1)
    {
        if (parseInt(navigator.appVersion) >= 4)
        {
            window.open(file,null,'fullscreen=yes');
            return 1;
        }
    }
   
    // Otherwise, open the window
    window.open(file,null,'screenX=0,left=0,screenY=0,top=0,width=' +window.screen.availWidth+ ',height=' +window.screen.availHeight+ ',outerWidth=' +window.screen.availWidth+ ',outerHeight=' +window.screen.availHeight+ ',menubar=no,resizable=no,alwaysRaised=yes,status=no');
}
-->
</script>

<a href="javascript:fullscreen('testcookie.htm')">test</a>


revised ... :)

<script type="text/javascript" language="JavaScript">
<!--
function fullscreen(file)
{
    // Only IE has fullscreen ...
    if (navigator.appVersion.indexOf("MSIE") != -1)
    {
        if (parseInt(navigator.appVersion) >= 4)
        {
            window.open(file,null,'fullscreen=yes');
            return 1;
        }
    }
   
    // Otherwise, open the window
    window.open(file,null,'screenX=0,left=0,screenY=0,top=0,width=' +window.screen.availWidth+ ',height=' +window.screen.availHeight+ ',outerWidth=' +window.screen.availWidth+ ',outerHeight=' +window.screen.availHeight+ ',menubar=no,resizable=no,alwaysRaised=yes,status=no');
    return 1;
}
-->
</script>

<a href="javascript:void(fullscreen('testcookie.htm'))">test</a>

Author

Commented:
how do i get that code to work when the form is loaded
I have never written j script before.

when i open the file i see test
when i click on test it opens again this time as full screen which is great , but the problem is now i have 2 screens open. There is a button on the page end when clicked it runs " history.go(-1) this has stopped working.

I forgot to mention that this html file is being open from a hyperlink on a access 2000 form. The link works fine and so does the back button.
Thanks.

Author

Commented:
how do i get that code to work when the form is loaded
I have never written j script before.

when i open the file i see test
when i click on test it opens again this time as full screen which is great , but the problem is now i have 2 screens open. There is a button on the page end when clicked it runs " history.go(-1) this has stopped working.

I forgot to mention that this html file is being open from a hyperlink on a access 2000 form. The link works fine and so does the back button.
Thanks.
> There is a button on the page end when clicked it runs " 
> history.go(-1) this has stopped working.

it is not working because the only way to get a full screen window is to open a new window ...


> I forgot to mention that this html file is being open from a hyperlink > on a access 2000 form. The link
> works fine and so does the back button.
> Thanks.
Sorry that i haven't used access 2k before, but do you mean it works ?

Author

Commented:
It doen't do exactly what I was looking for but what you gave me works fine.
Thanks for the help.
but if you want you can still ask me for help, and i am willing to answer you.

Author

Commented:
Thats Fine.
I Have Sent The File Out Not In Full Screen.
What It's Being used for is not that important so I won't spend any more time on it.
Thanks for the Help.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.