I am trying to figure out why this isn’t working … any help appreciated!
<html>
<head>
<title>String</title>
<script language=”javascript”>
function Duh()
{
var str=”The College”
document.write(str.search(/The College/i))
var str = document.myForm.input.value;
document.myForm.output.value = str;
}
if (input == The College)
{
document.write(“<b>Right!</b>”)
}
else
{
document.write(“<b>Wrong</b>”)
}
</script>
</head>
<body>
<form name = “myForm” method=”POST”>
Where do you go to school?: <input type=”text” name=”input”><br>
Output: <input type=”textarea” name=”output” size = 100><br>
<input type=”button” value=”Click Me” onClick=”Duh()”>
</form>
</body>
</body>
</html>