onclick事件后,IE8中的HRE未被跟踪?

时间:2021-12-01 17:42:57

On the following page, the orange "Buy Topo Map" link will open a page in IE7 (and Firefox and Safari), but not in IE8. The link is in the top-left.

在下一页上,橙色的“购买地形图”链接将在IE7(以及Firefox和Safari)中打开一个页面,但不会在IE8中打开。链接位于左上角。

http://www.trailbehind.com/node/1148091/

I am using the following code to create the link:

我使用以下代码来创建链接:

var a = dec('a');
a.className = 'jLink';
a.style.fontWeight = 'bold';
a.style.color = '#CC5500';
a.style.fontSize = '.8em';
a.target = '_blank';
a.href = 'http://www.mytopo.com/searchgeo.cfm?lat=' + map.target.la + '&lon=' + map.target.lo+'&pid=trailbehind';
a.onclick = function () {
  pageTracker._trackEvent("Orange Link", "Buy Topo Map", this.href);
  return true;
}
a.appendChild(dct('Buy Topo Map'));

What's the matter?

怎么了?

1 个解决方案

#1


Works fine for me, although IE8's devtools indicate the following runtime error:

虽然IE8的devtools表示以下运行时错误,但对我来说工作正常。

Line: 323 Error: 'pageTracker' is null or not an object

行:323错误:'pageTracker'为空或不是对象

#1


Works fine for me, although IE8's devtools indicate the following runtime error:

虽然IE8的devtools表示以下运行时错误,但对我来说工作正常。

Line: 323 Error: 'pageTracker' is null or not an object

行:323错误:'pageTracker'为空或不是对象