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

<!-- 
     js_ck_input1.html
     Check if user has entered a certain kind of value

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

<head>
    <title> js_ck_input1: check if user has entered a certain kind
            of value </title>
</head>

<body>

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

    <h3> js_ck_input1.html </h3>

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

    <hr>

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

        // bonus example: converting a value to a fixed number of
        //     decimal places

        var debt = 13.9
        document.write("debt is $" + debt.toFixed(2) + "<hr><br>")

        var response = prompt("which word do you want to see strongly?")
 
        if (response === null)
        {
            document.write("OK, you do not want to see ANY word")
        }
        else if (! isNaN(Number(response)) )
        {
            document.write("I asked for a WORD, not a number!")
        }
        else
        {
            document.write("<strong>" + response + "</strong>")
        }
        //-->
    </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>