Hello all,

I wrote a little code with an EventListener, but it does not work. I think that the getElementbyId is wrong.
Can you help me please?

PHP Code:
        <script type="text/javascript">
            var 
document.getElementById("h1");
            
b.addEventListener("click",ausgabefalse);
            
            function 
ausgabe(evt) {alert("Geschafft!");}
        
</script>