filmov
tv
JavaScript DOM getElementsByTagName() - JavaScript Tutorial for Beginners

Показать описание
Learn how to use the getElementsByTagName() JavaScript DOM method to retrieve HTML elements of a specific type. For example, all paragraphs or all images in an HTML document. The getElementsByTagName() method can also be used on elements to access their child nodes only and perform count operations. In this short JavaScript tutorial, you will learn how to count table rows and unordered list items in an HTML page by calling the getElementsByTagName() method and viewing the logs in the browser console. #shorts