Link to home
Start Free TrialLog in
Avatar of Eamon
EamonFlag for Ireland

asked on

View Full Screen

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.
Avatar of HolySpirit
HolySpirit

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>


ASKER CERTIFIED SOLUTION
Avatar of HolySpirit
HolySpirit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eamon

ASKER

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.
Avatar of Eamon

ASKER

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 ?
Avatar of Eamon

ASKER

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.
Avatar of Eamon

ASKER

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.