I am using the code
function highlight()
{
var field=document.forms["signin"]["username"].value;
if(field.length==0)
return false;
}
I write another function
function check()
{
if (highlight()==false;)
{
alert('message');
}
}
Can i call the function that way in the if region and check whether the function returns false?