<textarea  name="txt2" cols="56" onblur="test()" rows="10"></textarea>
function test()
{
   if(Form1.TextBox1.value .length==0&&Form1.TextBox1.value.length>20)
   {
        alert(超过20或空);
        
        return false;  
//得到焦点
       Form1.TextBox1.focus();
 
    }
}