This example works by only using javascript. It runs absolutely perfect on IE 8/9, FireFox 6.0.2 and Chrome 12.xxxx.
<html>
<head>
<script type="text/javascript">
function validate(content)
{
if(isNaN(content)==true)
{
alert('Enter Only Numeric Value');
return false;
}
else
return true;
}
</script>
</head>
<body>
<h1>Get attribute test!</h1>
<input id="btnClientId" type="text" value="" name="Whatchamacallit" onblur="return validate(this.value);"/>
<input id="submitIt" type="button" value="Do it!"/>
</body>
</html>
It must be something else that is going wrong in your code. Please use FireBug to debug your pages javascript.
Regards,
—MRB