开发者

jquery .unload problem in IE

开发者 https://www.devze.com 2022-12-26 12:21 出处:网络
I have the following code that works flawlessy in FF, but in IE I get an error that says \"invalid property value\"

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

精彩评论

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