im trying to make it so when i press a button it asks me a question from window.prompt, i tried this but it didnt work
<!DOCTYPE html>
<html>
    <head>
        <script>
            var button = document.getElementById('btn')
            function test(){
                window.prompt("test")
            }
        </script>
    </head>
    <body>
        <button id="btn" onkeyup="myFunction()">test</button>
    </body>
</html>