![]() |
|
|
+ Search |
![]()
|
Mar 12th, 2000 04:01
Martin Honnen,
NN4 has a
text
property for links (A HREF elements) while IE4+ uses the
innerText
property available for all HTML elements.
So
var link = document.links[linkIndex];
var text = document.all ? link.innerText :
link.text ? link.text : '';
is a cross browser way to access the text content of a link.