I\'ve got the following code:
some text
OnClick event you can pass the current object type. something like
OnClick
onclick=foo(this)
The function foo looks like
function foo(obj) { if(obj.tagName != 'A') { alert('Yes') } }