DOM - Get Element By Tag Name in JavaScript

preview_player
Показать описание
The getElementsByTagName() method returns a collection of all elements in the document with the specified tag name, as an HTMLCollection object. The HTMLCollection object represents a collection of nodes. The nodes can be accessed by index numbers. The index starts at 0.
Рекомендации по теме