in Technology

IE 5.0 + full Screen from itself

There was some discussion on the Macromedia Flash Forum about Full screen from the page itself. I just thought I will share that too here. You may alternatively have the click to be onLoad of the Body so that the browser goes fullscreen on load itself.
Have the folllowing Javascript

function fullscreen(){
 var hdiff;
 window.moveTo(-4,-4);
 window.resizeTo(screen.width,screen.height);
 hdiff=window.screenTop;
 window.moveTo(-6,-hdiff-7);
 window.resizeTo(screen.width+13,screen.height+hdiff+35)
}

and on your link put a href=""javascript:fullscreen();"

18 Comments

  1. thanks a lot ..that was really useful..spent quite a few hours and found only your code that matched the requirement i had

  2. thanks a lot ..that was really useful..spent quite a few hours and found only your code that matched the requirement i had

  3. How do I get back to a regular browser screen. Do I have to shut down the browser to do this? Hitting F11 doesn't do it.

  4. How do I get back to a regular browser screen. Do I have to shut down the browser to do this? Hitting F11 doesn't do it.

  5. Apologies - hope I'm not being stupid but can somebody show me a site where they have got this "fullscreen" code to work. I've played around for a bit -trying to get the fullscreen effect "onLoad" but can't make it work.

    Thanks,

    Chris ;)

  6. Apologies - hope I'm not being stupid but can somebody show me a site where they have got this "fullscreen" code to work. I've played around for a bit -trying to get the fullscreen effect "onLoad" but can't make it work.

    Thanks,

    Chris ;)

  7. Hi

    Any chance to get this to work on IE 7??
    The example above does not work on IE 7, only on IE6

    Cheers

  8. Hi

    Any chance to get this to work on IE 7??
    The example above does not work on IE 7, only on IE6

    Cheers

Comments are closed.