function checkWord() let inputValue = document.getElementById("myInputElement").value; if (inputValue === 'word') { window.location.href = "Page2"; } } input { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; z-index: -1; } input { z-index: 1; }