Is there a property of an html anchor tag that contains the anchor's visible
text? I need to sort an html table but one of the columns contains links. I
want to sort on that column by its text not by the href contained in it.
Below is a bit of code the sorting routine currently uses but doesn't quite
do what I want.

... = findFirstLinkChild(row1.cells[column]).href

thanks
LJB

Re: read text from html table cell containing and anchor tag by ljb

ljb
Fri Apr 07 14:57:04 CDT 2006


"ljb" <.> wrote in message news:uTg$GrmWGHA.1352@TK2MSFTNGP05.phx.gbl...
> Is there a property of an html anchor tag that contains the anchor's
visible
> text? I need to sort an html table but one of the columns contains links.
I
> want to sort on that column by its text not by the href contained in it.
> Below is a bit of code the sorting routine currently uses but doesn't
quite
> do what I want.
>
> ... = findFirstLinkChild(row1.cells[column]).href
>
> thanks
> LJB
>
>

I found my answer..."findFirstLinkChild(row1.cells[column]).innerText". I
had tried it earlier but had other errors and thought it didn't work. It
does however.