199 users online (0 members and 199 guests)  

Thread: window sizer ?


  Results 1 to 4 of 4

Related

  1. Pop-up Window within PHP how?    Forum: PHP Forum
    Replies: 3
  2. Passing value from parent window to child window    Forum: Javascript Forum
    Replies: 0
  3. Replies: 1
  4. Resizing a Window    Forum: Javascript Forum
    Replies: 2
  1. #1
    Tommy_kd's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2002
    Posts
    3

    window sizer ?

    Please help me ! i'm a graphic designer but new in web design. My question is:... i'm looking the code resize the window(i/e and netscape) when its onload. i want to keep the window in the fixed size when ppl open it. ( note: resize the parents window, not the button link or link to pop up new window )

    thank you very much.

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    Code:
    <html>
    
    <script language="javascript">
    <!--
    function resize() {
    window.resizeTo(screen.availWidth, screen.availHeight)
    }
    -->
    </script>
    
    <body onload="resize()">
    
    </html>
    something like that, and if you want it smaller you could do this:
    Code:
    window.resizeTo(screen.availWidth -10, screen.availHeight -10)
    Good luck.

  3. #3
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    or you could play a guessing game

    Code:
    window.resizeTo("1025", "730")

  4. #4
    Tommy_kd's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2002
    Posts
    3
    Thank you very much Derek !

    I tried what u said and it really works.

    U save me, thanks.
    Tommy_kd



Tags for this Thread