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.

Window.open() problem

Discussion in 'JavaScript' started by nwk, Sep 17, 2007.

  1. #1
    When I use this
    
    window.open('http://test.mygamesworld.com/index.php?action=popfile&fileid=230', '', 'width=800, height=300');
    
    Code (markup):
    to open a popup, the new window has width which is not equal to 800 but somewhat smaller(around 400px). This happens in firefox but works perfectly in IE. can anyone solve this problem??

    regards
    Nwk
     
    nwk, Sep 17, 2007 IP
  2. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Cannot replicate the problem:
    <a href='#' onclick="window.open('http://test.mygamesworld.com/index.php?action=popfile&fileid=230', '', 'width=800,height=300');return false">OPEN</A>
    
    Code (markup):
     
    Logic Ali, Sep 17, 2007 IP
    nwk likes this.
  3. webrickco

    webrickco Active Member

    Messages:
    268
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Related or not to your problem, always use the units (width=800px instead of width= 800). IE does not care, but FF does, most of all if you are using
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
     
    webrickco, Sep 18, 2007 IP
    nwk likes this.
  4. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #4
    Thanks guys for your help...its working now....LOL..
     
    nwk, Sep 18, 2007 IP
    webrickco likes this.