<!DOCTYPE html>
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<title>Input naar Scherm</title>
</head>
<body>
<input type="text" id="userInput" placeholder="Typ iets...">
<button onclick="showInput()">Toon Invoer</button>
<div id="displayArea"></div>
<script>
function showInput() {
// Haal de waarde op van het inputveld
var input = document.getElementById("userInput").value;
// Toon de ingevoerde tekst in het 'displayArea' element
document.getElementById("displayArea").innerText = input;
}
</script>
</body>
</html>
`