Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Document.getElementsByClassName()
The HTMLCollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
Returns the specific element at the given zero-based index into the list. Returns null if the index is out of range.
Returns the specific element at the given zero-based index into the list. Returns null if the index is out of range.
This page was last modified on Jun 23, 2025 by MDN contributors.
Selection and traversal on the DOM tree