I'm a newbie at this so couldn't figure this one out.
<html>
<head>
<title>Test JavaScript</title>
</head>
<body>
<script type="text/javascript">
var frst=true;
function first()
{
if(frst==true)
{
window.alert('Don't forget to Capitalize.');
}
frst=false;
}
</script>
<form>
<input type="button" value="Derke" onclick="first;" />
<select>
<option>color</option>
<option>smell</option>
<option>rain</option>
</select>
<br /><br /><br /><br /><br />
<input type="text" onfocus="first;" />
</form>
</body>
</html>
the onfocus handler isn't working. focusing on the textbox doesnt do anything.