Sorry, but if you used the function I showed above the form will NOT submit.
Code:
<html>
<head>
<title>Testing</title>
<style>
#textbox {position:absolute; left:200px};
</style>
<script>
function check(Textbox)
{
if(Textbox.value == "")
{
alert("Please enter telephone number");
//Textbox.select();
Textbox.focus();
return false;
}
return true;
}
</script>
</head>
<body onload="document.myform.telephone.focus();">
<form name="myform" onsubmit="return check(document.myform.telephone)">
Telephone No. <input id="textbox" type="text" name="telephone" ><br><br>
<input type="submit" value="Submit"> <br><br>
</form>
</body>
</html>
--
Joe