1

Ok so I start coding websites (yes I know I am almost 15 years late :0) and in many of the sites I see the following javascript:

<script language="javascript"><!--

var wwOpenInstalled;
if (wwOpenInstalled || parent.wwOpenInstalled) {
    if (window.Event) {
        document.captureEvents (Event.MOUSEUP);
    }
    document.onmouseup = (parent.wwOpenInstalled) ? parent.wwOnMouseUp : wwOnMouseUp;
}
//--></script>

This is a very simple question. Why is it here and what does it do ?

2 Answers 2

1

Do you use WebWasher, or McAfee Web Protection? That looks like code inserted by webWasher to trap links and protect against viruses or trojans.

1
  • I am in a corporate office. You think WebWasher is injecting this ?
    – Joseph
    Jul 4, 2009 at 20:23
0

By doing a quick google search on some of the keywords of the code, seems that this code is injected from a script of StatCounter, a service to track and get statistics of the visitors on your page.

But by reading the code, seems that is pretty outdated, the captureEvents function is now obsolete.

For website traffic analysis I highly recommend you Google Analytics.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.