1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

width for window.open() not working properly in firefox 1.5.0.9

Discussion in 'HTML & Website Design' started by lixor, Dec 27, 2006.

  1. #1
    hi,

    i have these two pages:

    test.html
    <html>
    <head>
    <title>Test page</title>
    </head>
    <body>
    <A href="#" onClick="window.open('testpage.html', '_blank', 'height=500,width=650,toolbar=0,menubar=0,location =0,resizable=0,scrollbars=1,status=0');">Click here</A>
    </body>
    </html>

    and

    testpage.html
    <html>
    <head>
    <title>Test page</title>
    </head>
    <body>
    ...a few paragraphs here...
    </body>
    </html>

    the problem in firefox 1.5.0.9 (the one i have on my pc - the latest version supporting romanian language) is that it not shows the pop up window at 650px (like in this case) but much, much less pixels.
    someone suggested me to put on testpage.html:
    <style type="text/css">
    body {
    width:650px;
    }
    </style>
    but without success. have anyone else experiencing this problem? how can i resolve it.

    thanks
     
    lixor, Dec 27, 2006 IP
  2. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding this to the testpahe.html:

    HTML:
    1. <body onload="parent.resizeTo(650,500);">
     
    crazybjörn, Dec 28, 2006 IP
  3. lixor

    lixor Peon

    Messages:
    72
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    now it works. thanks
     
    lixor, Dec 28, 2006 IP