thanks Jim,
i just changed it but still no prompt.
What am i doing wrong here ?
thanks
Code:
<html>
<SCRIPT language=javascript>
function Validate()
{
if(document.forms[0].phone_num.value.substr(0,1)==0)
{
alert("can not start with zero")
document.forms[0].phone_num.value="23480"
return false
}
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<form method="POST" action="index.asp">
<p><input type="text" name="phone_nu" size="20" value="23480"><input type="submit" onSubmit="return Validate()" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>
Bookmarks