TIA for your help with is quick question:
document.onkeyu p=test;
document.onmous edown=test;
function test(evt){
myEvent=window. event?event.src Element:evt.tar get;
alert(myEvent.h ref);
}
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
document.onkeyu p=test;
document.onmous edown=test;
function test(evt){
myEvent=window. event?event.src Element:evt.tar get;
alert(myEvent.h ref);
}
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
Comment