onclick="javascript: Expolrer 9 Problem

Discussion in 'JavaScript' started by lostdog, Dec 22, 2011.

  1. #1
    Hi,

    The following code does not open in Internet Explorer 9 for me. I have rolled Internet Explorer back to 8 where it does work and it also works in firefox. I have tried to reinstall back to 9 and same problem. My customers need this to view multiple images of products so I really need to find a solution. Does anyone see anything wrong with this code or know of a fix?

    <a title="View Finishes" onclick="javascript: return !popupOpen(xcart_web_dir + '/popup_view_finish.php?productid=17527'); return false;" href="javascript:void(0);" class="simple-button"><span>View Finishes</span></a>

    Thanks in advance for your help.
     
    lostdog, Dec 22, 2011 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    try removing "javascript:" from your 'onclick'.
     
    rainborick, Dec 23, 2011 IP
  3. lostdog

    lostdog Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    rainborick,

    I removed it and it will open on double click in full page and not as a popup. I would like it to open on one click and as a popup. Any idea how to achive this?
     
    lostdog, Jan 6, 2012 IP
  4. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #4
    remove javascript: inside the onclick attribute.. you are already inside an event attribute so you don't need it.

    try to check your browser's console for some error/s thrown, maybe its causing why the link doesn't work as you wanted..
     
    JohnnySchultz, Jan 12, 2012 IP