Javascript function working in IE but not Mozilla

Discussion in 'Programming' started by DIY Adviser, Apr 8, 2008.

  1. #1
    I have the following function with runs in response to an "onclick" event in a href string. tracker.php updates a database with "adID". It works perfectly In IE but does not work in Mozilla unless I put an alert message following the img.src statement. Can anybody help?

    function logAdID(adID)
    {
    if (img)
    {
    clearTimeout(timer);
    }
    img = new Image();
    img.src = "http://www.diyadviser.com/Ads/tracker.php?adID=" + adID;
    return;
    }
     
    DIY Adviser, Apr 8, 2008 IP
  2. Sabbir

    Sabbir Banned

    Messages:
    210
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    can you please send the detail code.with html one?
     
    Sabbir, Apr 8, 2008 IP