'goto' is considered 'evil' in every progamming language other than Basic (very long story as to why...).. in this case you actually want to do a 'while' loop. It returns to the top of the {} as long as the condition remains true.
var number;
number = prompt("Please enter a number"," ");
number = parseInt(number)
while (isNaN(number))
{
document.write("This is not a number
");
document.write(" Please try again!");
}
var result ;
result = 2*number ;
document.write("The number times two is = "+result);
Paul Lomax
Internet Technology Manager
IPC Country and Leisure Media
- www.ipcmedia.com
Pick Me Up magazine - Real life as you've never seen it before!