View Full Version : onFocus() in Firefox, Opera?

01-30-2009, 11:27 PM

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...

<script type='text/javascript'>
function logClick() {
bug = new Image();
bug.src = 'trackerScript.php?pg=' + escape(document.title) + '&advertisement=' + escape(window.status);

<div onMouseOver='logClick();' style='width: 468px; height: 60px;'>
<iframe src='googleadsensecode.html' frameborder='0' width='468px' height='60px'>

I'd like to use something that really triggers script during iframe click...

02-05-2009, 01:48 PM
Maybe it is possible with addeventlistener or something? because i'm really noobie with event listener creation...