Results 1 to 2 of 2

Thread: Maximise Windows - Java Script

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Manchester
    Posts
    17

    Exclamation Maximise Windows - Java Script

    Help - I have a link in my Webpage that opens as a new window - however it does not open to its maximum size - how can I, when I click on the link make it grow to fit the screen automatically

    Thank you!!!!!!

    Caroline
    Last edited by Caroline; Apr 4th, 2002 at 10:15 AM.

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Hi,

    I think this is what you want

    Code:
    <html>
    <head>
    <title>Untitled</title>
    <script language="JavaScript" type="text/javascript">
    <!--
    function maximise(){
      window.moveTo(0, 0);
      window.resizeTo(screen.width, screen.width)
    }
    //-->
    </script>
    
    </head>
    <body>
    <a href="javascript:" onclick="maximise()">Maximise Window</a>
    </body>
    </html>
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width