<html>
<body>
<h1 id="text">Good morning!</h1>
<button id="button">click me</button>
<script>
document.getElementById("button").addEventListener('click', function() {
document.getElementById("text").innerHTML = 'GOOD NIGHT';
});
</script>
</body>
</html>