Code:
<html>
<script>
function reg() {
document.captureEvents(event.CLICK);
window.onclick = hit;
}
function hit() {
alert('hit');
}
</script>
<body onload="reg();">
</body>
</html>
<html>
<script>
function reg() {
document.captureEvents(event.CLICK);
window.onclick = hit;
}
function hit() {
alert('hit');
}
</script>
<body onload="reg();">
</body>
</html>
Pomagajte kad ga pokrenem iz IE prijavi mi gresku script error ne znam sta da radim. Ovo sam koristio iz jednog tutoriala i neradi mi :(