1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need window resizer script

Discussion in 'HTML & JavaScript' started by blackhatttt, Dec 17, 2008.

  1. blackhatttt

    blackhatttt Regular Member

    Joined:
    Apr 11, 2008
    Messages:
    221
    Likes Received:
    19
    Guys can you help me out here?

    Basically I need a script that detects the resolution of the visitors screen and then resize the window to full screen.

    Please and thank you!
     
  2. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    Bitte sehr :D

    HTML:
    <script language="JavaScript" type="text/javascript">
    if (window != top) top.location.href = location.href;
    self.moveTo(0,0);
    self.resizeTo(screen.availWidth,screen.availHeight);
    </script>
    
    Regards
     
    • Thanks Thanks x 1
  3. blackhatttt

    blackhatttt Regular Member

    Joined:
    Apr 11, 2008
    Messages:
    221
    Likes Received:
    19
    Thanks cyklotrial. You really helped me out there.
     
  4. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    hehe no problem
    it was trivial