Popup window size?

Discussion in 'HTML' started by Frogleg, Apr 23, 2004.

  1. Frogleg

    Frogleg Guest

    I'm trying to open a small popup window with the following:

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id +
    "','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=150,height=30');");
    }
    // End -->
    </script>
    ..
    ..
    <A HREF="javascript:popUp('hint1.htm')">Get Hint</A>

    (Code from Javascript.internet.com)

    The window shows up as 150px wide and 100px high. I can make the
    height *greater* than 100, but not less. What's happening?
     
    Frogleg, Apr 23, 2004
    #1
    1. Advertising

  2. Frogleg

    Jeff Thies Guest

    > <SCRIPT LANGUAGE="JavaScript">
    > <!-- Begin
    > function popUp(URL) {
    > day = new Date();
    > id = day.getTime();
    > eval("page" + id + " = window.open(URL, '" + id +
    >

    "','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,widt
    h=150,height=30');");
    > }
    > // End -->
    > </script>
    > .
    > .
    > <A HREF="javascript:popUp('hint1.htm')">Get Hint</A>
    >
    > (Code from Javascript.internet.com)
    >
    > The window shows up as 150px wide and 100px high. I can make the
    > height *greater* than 100, but not less. What's happening?


    That's a common browser limitation and there is nothing you can do about it.
    Unless you want to make your own browser...

    Jeff
     
    Jeff Thies, Apr 23, 2004
    #2
    1. Advertising

  3. Frogleg

    Mark Parnell Guest

    On Fri, 23 Apr 2004 13:52:10 GMT, Frogleg <> declared
    in alt.html:

    > I'm trying to open a small popup window


    Well, don't. If I want a new window opened, I'll do it myself.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
     
    Mark Parnell, Apr 27, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenny
    Replies:
    1
    Views:
    683
    Travis Murray
    Dec 13, 2004
  2. =?Utf-8?B?Sm9obiBXYWxrZXI=?=

    Popup Window Popup Timing

    =?Utf-8?B?Sm9obiBXYWxrZXI=?=, Nov 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    884
    =?Utf-8?B?Sm9obiBXYWxrZXI=?=
    Nov 4, 2005
  3. Jens Peter Hansen
    Replies:
    7
    Views:
    599
    Randy Webb
    Jun 19, 2004
  4. Raffi
    Replies:
    4
    Views:
    263
    Dr John Stockton
    Aug 12, 2004
  5. Daniel Fugmann

    Adapt size of popup to its content's size?

    Daniel Fugmann, Aug 17, 2004, in forum: Javascript
    Replies:
    4
    Views:
    144
    kaeli
    Aug 18, 2004
Loading...

Share This Page