Please send questions to
st10@humboldt.edu .
<html>
<!--
js_vars1.html
Playing with JavaScript variables
by: Sharon Tuttle
last modified: 8-27-06
-->
<head>
<title> js_vars1.html: Playing with JavaScript variables </title>
<script type="text/javascript">
<!--
function moo()
{
var name = "Elsie"
alert("MooooOOOOOoooo says name: " + name + " in place: " + place)
}
//-->
</script>
</head>
<body>
<h2> js_vars1.html </h2>
<script type="text/javascript">
<!--
var name = "CIS 180 L"
var place = "Arcata"
//-->
</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>
<h2> Created for (Elsie or CIS 180 L? and where?):
<script type="text/javascript">
<!--
document.write(name + " in " + place)
//-->
</script>
</h2>
<h2> What value of name does moo display in popup? </h2>
<script type="text/javascript">
<!--
moo()
//-->
</script>
<h2> After moo: name here is Elsie or CIS 180 L?:
<script type="text/javascript">
<!--
document.write(name)
//-->
</script>
</h2>
</body>
</html>