Menu
HI,
<html>
<head>
[CODE]
<script language=”JavaScript”>
function checkme(strVal){
if(strVal==’id’)
{
alert(‘true’);
document.forms[0].id.focus();
} else {
alert(‘false’);
document.forms[0].dept.focus();
}
}
</script>
</head>
<body>
NAME..<input type=”text” name=”name” value=”” size=”5″ maxlength=”4″ onChange=”checkme(this.value)”/><br>
ID….<input type=”text” name=”id” value=””/><br>
DEPT..<input type=”text” name=”dept” value=””/><br>
</body>
</html>
Is there any thing wrong… can any bady tel me..
thx & rgds,
Ajay