Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    onFocus() in Firefox, Opera?

    Hey,

    I'm trying to implement google adsense click tracking script, but the problem is that I cannot use onFocus trigger in firefox and opera. Maybe there are any other ways to acomplish this? Right now I'm using onMouseOver in additional div, which isn't what I want...

    Code:
    <script type='text/javascript'>
    function logClick() {
    window.focus();
    bug = new Image();  
    bug.src = 'trackerScript.php?pg=' + escape(document.title) + '&advertisement=' + escape(window.status);
    }
    </script>
    
    <div onMouseOver='logClick();' style='width: 468px; height: 60px;'>
    <iframe src='googleadsensecode.html' frameborder='0' width='468px' height='60px'>
    </iframe>
    </div>
    I'd like to use something that really triggers script during iframe click...

  • #2
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Maybe it is possible with addeventlistener or something? because i'm really noobie with event listener creation...


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •