W3cubDocs

/Web APIs

HTMLAllCollection: length property

The HTMLAllCollection.length property returns the number of items in this HTMLAllCollection.

Value

An integer value representing the number of items in this HTMLAllCollection.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
length 6 12 32 15 5 18 32 14 4 1.0 3 4

See also

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/length