<input id="RESULT0" type="text" onchange="Test()">
<script type="text/javascript">
function Test(){
var RegularTemplate=/^\s*$/g;
var BooleanCheck=RegularTemplate.test(document.getElementById('RESULT0').value);
if(BooleanCheck==true)
{alert("Yes");}
else
{alert("No");}
}
</script>