tane
04-19-2004, 01:19 AM
having problems with this script i am trying to write a script that will allow the user to input 2 numbers and have the script dispaly them on the page in assending order
here is what i have done but i keep getting a error message around where the else statement is......
var numb1=prompt("please enter your first number","");
var numb2=prompt("please enter your second number","");
if
(numb1<numb2);
document.writeln(numb1,numb2);
else
{ document.writeln(numb2,numb1);
}
here is what i have done but i keep getting a error message around where the else statement is......
var numb1=prompt("please enter your first number","");
var numb2=prompt("please enter your second number","");
if
(numb1<numb2);
document.writeln(numb1,numb2);
else
{ document.writeln(numb2,numb1);
}