Hi to all,
After comming alert, cursor should not go to the next field. i am a beginner to script functions. can any one give me solution .
<script>
function validateDate(strdate)
{
if(strdate.length < 8 || strdate.length > 8)
{
alert("Error:Enter Valid Date");
}
else
{
ValidateNum(strdate);
}
}
</script>
<html>
<head>
<title> New Document </title>
</head>
<body>
Bhanu <input type="text" name ="bhanu" onblur = "validateDate(this.value);" >
<input type="submit" value="submit">
</body>
</html>
regards
Bhanu