The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

IE part: here the script just checks for onfocus. Better: trace onfocus (gets focus) and onblur (loses focus) and onmouseover, onmouseout as boolean flags and check for the link via onbeforeunload. This is way more accurate.

In Firefox the iFrame swallows the mouseevent. better: track for mouseover, mouseout event and look in the beforeunload event, if you were in the iframe.

in order to test, just create an own iframe on a page and a document with a link as the content. then replace the 'googlesyndication.com' string in the script

So, I wanted to apply these changes, but I'm stuck with the "testing" part... I've set an alert instead of the tracker and changed the string that is the src of my iframe, but it doesn't seem to work.

There's anyone who could please help me, and post the script with the improvements suggested in the comment?