[Javascript] number of elements
Roger Roelofs
rer at datacompusa.com
Wed Mar 30 09:34:43 CST 2005
Iztok,
On Mar 30, 2005, at 10:16 AM, Iztok Polanic wrote:
> Hi!
>
> How to count number of elements (<a>,<div> etc. tags) in a page?
aTags = document.getElementsByTagName("A");
alert("There are " + aTags.length + " a tags);
Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services Email rer at datacompusa.com
3215 Eaglecrest Drive, NE
Grand Rapids, MI 49525-4593
More information about the Javascript
mailing list