?
Hello, I have a small java script problem regarding printing an alert to screen when a calculated number is of a certain value.
I would like the web page to alert the user with one alert then the number is over 25
One alert when the value is below 25 but more than 10
And one when the value is below 10.
How can I do this?
This is what I have so far:
[QUOTE]
function doSum(a,b)
{
var total=parseInt(a)+parseInt(b);
document.form1.sum.value=total;
if (total >25)
{
alert(“wow that’s a big total”);
}
if (total <25)
{
alert(“coor, that total isn’t too large now is it?!!”);
}
else (total <10)
{
alert(“wow, this number is tiny!”);
}
}