Results 1 to 2 of 2

Thread: new browser window - specific size

  1. #1
    Join Date
    Apr 2006
    Posts
    4

    new browser window - specific size

    Hello,

    I'm aware of how to make a link open in a new brower window, but I want that new window to be much smaller, say 400x400 or something. I've seen it done and should have peeked at the code then, but now I don't remember where it was.

    Any ideas?

    Erin

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Click on the middle button top right of the screen, between the - and x; then put the mouse on the edge of the window and drag it smaller, both side and bottom.

    I don't know how to make it EXACTLY 400 x 400; I just judge it by eye comparing it as a proportion of my 1024 x 768 screen resolution.

    I would be interested to know if there is a way of measuring the new window accurately.

    If you want to control someone else's browser window when they open your page use the code from http://www.codeave.com/javascript/code.asp?u_log=7065
    Put this in the <head>:-

    <script language="JavaScript">
    <!--
    // This will resize the window when it is opened or
    // refresh/reload is clicked to a width and height of 400 x 400
    // width is placed first, height is placed second
    window.resizeTo(400,400)
    -->
    </script>

    (Just tried it with one of my pages).
    Last edited by Wickham; 22 Apr 2006 at 07:11 AM.

Similar Threads

  1. Fixed window size of webpage...How to do it?
    By Paul81 in forum General Questions
    Replies: 1
    Last Post: 11 Nov 2005, 09:41 PM

Posting Permissions

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