[thelist] DOM question

liorean liorean at gmail.com
Thu Mar 3 18:12:44 CST 2005


On Thu, 3 Mar 2005 12:39:49 -0800 (PST), Tom Dell'Aringa
<pixelmech at yahoo.com> wrote:
> function ChooseItem(choice) {
>   var myLinkText = choice.(some DOM call here)
> }
> 
> Since i already have the object, seems like it should be easy but can't quite get it.

If you know the link text will be a text node and not contain
elements, you can use choice.firstChild.data.

-- 
David "liorean" Andersson
<uri:http://liorean.web-graphics.com/>


More information about the thelist mailing list