Window Size

Discussion in 'HTML & Website Design' started by Cbrackett, Sep 11, 2009.

  1. #1
    I am building a survey box for my website and it opens up in a separate window for the rest of my site... how can i make it so that it opens as a small window and not a full size view? I want it to be like a pop-up... Thanks guys!
     
    Cbrackett, Sep 11, 2009 IP
  2. tejaswini

    tejaswini Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In the <head> section

    <script>
    function changeScreenSize(w,h)
    {
    window.resizeTo( w,h )
    }
    </script>
    In the body section of the popup, you could put
    <body onload="changeScreenSize(500,300)">

    500 and 300 can be replaced by whatever width and height you want
     
    tejaswini, Sep 11, 2009 IP
  3. Cbrackett

    Cbrackett Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Perfect... Thanks man!
     
    Cbrackett, Sep 11, 2009 IP
  4. tejaswini

    tejaswini Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    :) one correction....I am a girl
     
    tejaswini, Sep 11, 2009 IP
  5. Cbrackett

    Cbrackett Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    My apologies... Thanks my lady! :)
     
    Cbrackett, Sep 11, 2009 IP
  6. NexsStep

    NexsStep Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    OK, no need for my suggestion then :)
     
    NexsStep, Sep 11, 2009 IP