Please send questions to
st10@humboldt.edu .
<html>
<!--
js_nullplay.html
Seeing if can use === to detect null vs "null"
by: Sharon Tuttle
last modified: 8-29-06
-->
<head>
<title> js_nullplay: Can you use === to detect nul vs. "null"? </title>
</head>
<body>
<h1> CIS 180 null Experiment </h1>
<h3> js_nullplay.html </h3>
<h4> (by Sharon Tuttle, last modified 8-29-06) </h4>
<hr>
<script type="text/javascript">
<!--
var response = prompt("which word do you want to see strongly?")
// this is intended to be action if user clicks Cancel button
if (response === null)
{
document.write("OK, you do not want to see ANY word")
}
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>