View Single Post
Old 02-22-2008, 03:06 PM   #2 (permalink)
oddcomments
Junior Member
 
Join Date: 01-16-07
Location: USA
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

oddcomments is liked by many
I found the solution:

PHP Code:
function adSenseClick() {
     (new 
Image()).src '/AdSenseTracker.php?Q=bwidgets&D=http://widgets.com/';

...which is the call I started with. The real problem is this:

HERE'S THE REAL PROBLEM...
Google's iframe sets the anchors to "target=_top". I changed the anchor targets in my test Google iframe to "_blank" vs. "_top" and it works great. It definitely seems that the problem lies with the JavaScript not executing before the visitor leaves the page.

Anyone know how to override the anchor target in a frame you have no control over?
.
oddcomments is offline   Reply With Quote