Select elements by tag name in JavaScript - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: JavaScript Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=6) +--- Thread: Select elements by tag name in JavaScript (/showthread.php?tid=4078) |
Select elements by tag name in JavaScript - Qomplainerz - 04-04-2023 The HTML part between the <body></body> tags looks like this: Code: <!-- Get elements by tag name --> The JavaScript part looks like this: Code: let links = document.getElementsByTagName('a'); |