TIA for your help with is quick question:
document.onkeyup=test;
document.onmousedown=test;
function test(evt){
myEvent=window.event?event.srcElement:evt.target;
alert(myEvent.href);
}
Works great for a link like:
<a href="http://www.google.com">Google</a>
The alert properly shows http://www.google.com.
However this:
<a href="http://www.google.com"><i>Google</i></a>
returns undefined. How can i get the href?
The <i> and it's placement is not my doing, I'm forced to deal with
it.
Thanks much,
Rick