[Javascript] Re: GetElementByElement?

Simeon Willbanks simeon at simeons.net
Thu Mar 4 11:33:49 CST 2004


Thanks to everyone for the suggestions.  Below is what I believe I was
looking for, but I found a script that satisfied my need from the apple
developer connection:
http://developer.apple.com/internet/webcontent/styles.html

Thanks again,
Simeon 

On 3/4/04 12:26 PM, "javascript-request at LaTech.edu"
<javascript-request at LaTech.edu> wrote:

> I'm not sure on what you're trying to do here, but you always have
> document.getElementsByTagName('[TAGNAME]');, which returns an array
> (nodelist) with all the [TAGNAME] elements in the document. To get the
> body element, simply do
> 
> var oBody = document.getElementsByTagName('body')[0];
> 
> Regards,
> H




More information about the Javascript mailing list