Sascha Schulz
vor 4 Tagen c98907289eb9db87a5bea37f2e2c39d6d1f59ce5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="de">
    <head>
        <meta charset="UTF-8">
        <title>document</title>
    </head>
    <body>
        <button>Dunkle Magie</button>
        <script>document.write("<p>Hier steht ein Text</p>")</script>
        <script>document.write("<p>Und noch mehr Text</p>")</script>
 
        <script>
            const button = document.querySelector("button");
 
            button.addEventListener("click", () => {
                document.write("<p>Alles pfutsch</p>")
            });
        </script>
    </body>
</html>