View Single Post
Old 05-29-2003, 08:44 AM   PM User | #3
joh6nn
wei wu wei


 
joh6nn's Avatar
 
Join Date: Jun 2002
Location: 72° W. 48' 57" , 41° N. 32' 04"
Posts: 1,887
Thanks: 0
Thanked 1 Time in 1 Post
joh6nn is an unknown quantity at this point
...

to the very best of my knowledge, there is no isNumeric function in javascript. there's isNaN, though, which will return true if the argument its passed isn't a number.

try this:

if (isNan(var1)) { alert ("Please enter number for (a)");}
else { document.form1.Answer.value = result; }

if (isNaN(var2)) { alert ("please enter number for (b)"); }
else { document.form1.Answer.value = result; }
__________________
bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

i am a loser geek, crazy with an evil streak,
yes i do believe there is a violent thing inside of me.
joh6nn is offline   Reply With Quote