Re: DOM FAQ

Garrett Smith wrote:
> getElementsByTagName('body').item(0);
> 
> (or for better performance)
> 
> getElementsByTagName('body')[0];

For what it's worth, I believe the former is a tiny little bit faster 
than the latter in Gecko, though the difference is pretty minuscule.

-Boris

Received on Wednesday, 29 March 2006 18:50:24 UTC