480599 JavaScript Pro to Fix JS Script
Bütçe N/A
The below script calls a script on my site when a visitor exits a page. The script work fine in FF but wont work in IE8. I need some one to test and fix it.
Here's the script:
<html>
<script type="text/javascript">
// detect IE or Mozilla
var isIE = [url removed, login to view];
function if_left() {
url="[url removed, login to view]";
if ([url removed, login to view]) {
http_request = new XMLHttpRequest();
}
else if ([url removed, login to view]) {
try {
http_request = new ActiveXObject("[url removed, login to view]");
}
catch (e) {
try {
http_request = new ActiveXObject("[url removed, login to view]");
}
catch (e) {}
}
}
if (!http_request) {
return false;
}
[url removed, login to view] = function() { }
[url removed, login to view]('GET', url, true);
[url removed, login to view](null);
}
window.onunload=function() { if_left(); }
</script>
<body>
<a href="[url removed, login to view]">google</a>
</body>
</html>