开发者

jquery .unload problem in IE

I have the following code that works flawlessy in FF, but in IE I get an error that says "invalid property value"

The code in questions is as follows:

pageOpen = new Date();

dropper = new Image();

$(window).unload(function() {

  pageClose = new Date();

  sionara = (pageOpen.getTime() - pageClose.getTime())/-1000;

  dropper.src = "http://redacted.domain.com/1/%%PAGE%%/1%%REALRAND%%@x80&XE&ABC_Tim开发者_如何学运维eSpent="+sionara+"_seconds&XE";

  alert("close " + sionara);

});


your dropper source seems wrong. why do you have so many % and @ in it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜