JS Beispiel getElementsByTagName
How do I make an js beispiel getelementsbytagname?
What is a js beispiel getelementsbytagname? How do you make a js beispiel getelementsbytagname? This script and codes were developed by Anna Prenzel on 04 September 2022, Sunday.
JS Beispiel getElementsByTagName - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>JS Beispiel getElementsByTagName</title>
</head>
<body> <button onclick="color()">Markiere alle h4-Überschriften</button>
<button onclick="undo()">Rückgängig</button>
<h1>Hochschule Zittau/Görlitz</h1>
<h4>Mit ERASMUS an die Wurzeln der Mikrobiologie</h4>
<p>Studentin der Molekularen Biotechnologie absolviert Praxissemester und Bachelorarbeit am ‚Institut Pasteur‘ in Paris.</p>
<h4>Fruchtbare Zusammenarbeit wird fortgesetzt</h4>
<p> Neuer Kooperationsvertrag zwischen Hochschule und Landkreis unterzeichnet.</p>
<h4>Gehen wir heute Abend in die Mensa essen?</h4>
<p> Das Studentenwerk Dresden untersucht die Option ein Abendangebot in den Mensen zu gestalten.</p> <script src="js/index.js"></script>
</body>
</html>
JS Beispiel getElementsByTagName - Script Codes JS Codes
function color(){ //Liste mit allen h4-Elementen var elements = document.getElementsByTagName("h4"); //Bearbeite jedes Element in der Liste for(var i=0; i<elements.length; i++){ //Bearbeite das Element an der Position i: elements[i].style.color = "red"; }
}
function undo(){ var elements = document.getElementsByTagName("h4"); for(var i=0; i<elements.length; i++){ elements[i].style.color = ""; }
}
Developer | Anna Prenzel |
Username | HSZG-Frontend-Kurs |
Uploaded | September 04, 2022 |
Rating | 3 |
Size | 1,908 Kb |
Views | 22,264 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS Beispiel Menu | 2,010 Kb |
Mars2020 | 5,377 Kb |
Form Beispiel 1 | 1,552 Kb |
JS Beispiel RadioButtons 3 | 1,971 Kb |
JS Aufgabe Quiz 2 | 1,321 Kb |
JS Beispiel getElementsByClassName 3 | 1,988 Kb |
JS Aufgabe Quiz jQuery | 1,895 Kb |
JS Beispiel RadioButtons 2 | 1,836 Kb |
Form Beispiel 2 | 1,719 Kb |
JS Beispiel Input Farbe | 1,575 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Click handler test | Snapson | 2,329 Kb |
Parallax with only CSS | Thulioph | 2,297 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Blog demo to use given styling | Andygirl | 2,412 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
Break Out | AzazelN28 | 12,431 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Brian The CSS Bee | Jonitrythall | 3,922 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!