42 users online (0 members and 42 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 1
  2. Resizing Pictures    Forum: HTML Forum
    Replies: 2
  3. Window resizing, again    Forum: Javascript Forum
    Replies: 3
  4. resizing resolution    Forum: HTML Forum
    Replies: 1
  1. #1
    girlygirl's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    1

    Resizing a Window

    Hi! I was just wondering if anyone could tell me how to set the size of a window. I am making a webpage, but I wanted to make my page come up in a new window that has a preset size that cannot be resized. I would love it if someone could tell me the code or whatever is needed for it.

  2. #2
    spikeymikey's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    1
    Here is one way you could do it

    put this in the <head> section

    <script language="JavaScript">
    window.resizeTo(100,100);
    function staySame(){
    window.resizeTo(100,100);
    }
    </script>

    And this in the body tag
    onResize="staySame();"

    like this
    <body onResize="staySame();">
    just replace the values (100,100) with the size you want the window to be.

    there are other ways to do it id imagine

  3. #3
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    Keep in mind, however, that a lot of people (raises hand) don't like having their browser window hijacked.



Tags for this Thread