W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Re: where in the DOM data structures is href stored?

From: Sami Lempinen <lempinen@iki.fi>
Date: Sat, 11 Nov 2000 22:59:42 +0200
To: html-tidy@w3.org
Message-ID: <20001111225942.B11922@koti1-user114.adsl.tpo.fi>
On Sat, Nov 11, 2000 at 11:50:32AM -0500, jtnews wrote:
> where in the DOM data structures is href stored?
> 
> For example,
>   <a href="http://myurl.com">myurl</a>
> 
> Where can I find "http://myurl.com" ?
> 
> I find "a" listed as an element but I can't find
> an "href" node anywhere.

If I understood your question correctly, you should be able to
retrieve the attribute value using the getAttribute("href")
method call on the Element that is "a".

-Sami

-- 
lempinen@iki.fi http://www.iki.fi/lempinen/
ICQ:19002710  *************  apt-get a life
Received on Saturday, 11 November 2000 15:59:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT