<!DOCTYPE html>
<html>
    <head>
        <title>test</title>
        <script type="text/javascript">
            window.onload = function() {
                document.getElementById("result").innerHTML = prompt("test");
            }
        </script>
    </head>
    <body>
        <div id="result"></div>
    </body>
</html>