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 not working with IE6

Discussion in 'JavaScript' started by akinak, Mar 21, 2008.

  1. #1
    I have a link which opens a pop-up window. It is working fine with firefox and netscape,but with IE6 it simply opens the page in the same window. Here is the code:
    <a href="PHIL305.html" onClick="JavaScript:window.open('PHIL305.html',' ','height=300,width=400,scrollbars=yes');return false;">PHIL 305
    </a>
    Code (markup):
    How can I make it open a pop-up window in IE6?? Is it the browser compatibility issue?
     
    akinak, Mar 21, 2008 IP
  2. akinak

    akinak Peon

    Messages:
    256
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok..I modified the code and it worked. here is what I did:
    <a href="PHIL305.html" onClick="window.open('PHIL305.html','_blank','height=300,width=400,scrollbars=yes');return false;">PHIL 305
    </a>
    Code (markup):
    Is there any other way also of doing it?
     
    akinak, Mar 21, 2008 IP
  3. vpguy

    vpguy Guest

    Messages:
    275
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could also leave the middle parameter blank (use two quotes with no spaces or anything else in between them, such as ''). The first attempt probably failed because you had a space in between the quotes.
     
    vpguy, Mar 21, 2008 IP