poorking, можно же проще))
<script type="text/javascript">
document.onclick = function(event) {
*!*var target = event ? event.target : window.event.srcElement;*/!*
if(target.nodeName == 'A') {
alert('Oops!');
}
return false;
};
</script>
<a href="#">click</a>