OK, trying to do some client side errors checking to make sure users put in the right datatype. In this case, I want users to only put in numeric values.<BR><BR>The function I wrote only returns "string" in the message, even when I put in numeric values. I&#039m rather new to javascrip, so any pointers/alternatives will help.<BR><BR>Here&#039s the function I wrote:<BR><BR>function testValue(i){<BR> val = i.value<BR> if (typeof(val) == "string"){<BR> msg = typeof(val)<BR> msg = typeof(val) + " is the value:" + val<BR> alert(msg)<BR> }<BR>}<BR>//--&#062;<BR><BR>Here&#039s the input tag:<BR><BR>&#060;input type="text" name="test" value="" onblur="testValue(this)"&#062;<BR><BR>In my initial testing, I did not put the input tag between form tags, but I&#039m not sure it&#039s necessary to get this to work.<BR><BR>Thanks.<BR><BR>Dano