i have given code for displaying an alert message if the textbox is left empty..
CODE
function validate() {
if(document.form.name.value=="")
{
alert ('Please enter Name');
return false;
}}
if(document.form.name.value=="")
{
alert ('Please enter Name');
return false;
}}
it is working , but i want to do is..
it should display an alert message if the length of the numbers is greater than 5
ie if it is 19995 , it sholud display an alert message..
how can i do that??
please give me a solution...
thanks......
