Hi
I have only been playing with HTML/JS for a couple of days.
Please can someone tell me why the following statements do not work.
Thanks
HTML Code:
<html>
<head>
<title>My Website Page 2</title>
<script type="text/javascript">
function sendalert(x)
if (x=="Dave")
{
document.write("Yourname is Dave");
}
else
{
document.write("You're not Dave");
}
</script>
</head>
<body>
<form>
<input type=text name="text" value="NAME">
<input type=button value="click Me" name="send" onclick="sendalert(form.text.value)">
</form>
</body>
</html>