Please send questions to st10@humboldt.edu .
<html>

<!-- 
     js_ck_input2.html
     Check if user has entered a certain kind of value, experiment #2

     by: Sharon Tuttle
     last modified: 8-29-06
-->

<head>
    <title> js_ck_input2: check if user has entered a certain kind
            of value, experiment #2 </title>
</head>

<body>

    <h1> CIS 180 Checking-Input Experiment #2 </h1>

    <h3> js_ck_input2.html </h3>

    <h4> (by Sharon Tuttle, last modified 8-29-06) </h4>

    <hr>

    <script type="text/javascript">
        <!--

        var response = prompt("Enter a number")

        if (response === null)
        {
            document.write("Clicked CANCEL, not OK")
        }
        else if (isNaN (Number(response)) )
        {
            document.write("I asked for a NUMBER")
        }
        else 
        {
            document.write("response + response --> ")
            document.write(response + response)

            document.write("<hr>")

            document.write("Number(response) + Number(response) --> ")
            document.write(Number(response) + Number(response))
        }

        //-->
    </script>
    <noscript> 
        <hr> 
        <h3> Your browser does not support JavaScript, or has it disabled; 
             <br> 
             please note that, as a result, this page will not work. </h3> 
        <hr> 
    </noscript> 

    <hr>

</body>
</html>