Jmicoli
05-14-2003, 09:39 PM
I am new to javascripting and I am trying to write the following code but it doesn't work. Where am I going wrong??? (besides trying to write code)
<html>
<head>
<script type="text/javascript" language="JavaScript">
</script>
</head>
<br>
<body>
<form name="myform">
<input type="text" name="input" value=""><br>
<input type="button" value="Click here"
onClick="var x=document.myform.input.value;
while (x <= 10){
(isNAN (x)==true)
{
alert('please enter a number');
}
document.write('The number is ' + x + <br>');
x++
}">
</form>
</body>
</html>
:confused:
<html>
<head>
<script type="text/javascript" language="JavaScript">
</script>
</head>
<br>
<body>
<form name="myform">
<input type="text" name="input" value=""><br>
<input type="button" value="Click here"
onClick="var x=document.myform.input.value;
while (x <= 10){
(isNAN (x)==true)
{
alert('please enter a number');
}
document.write('The number is ' + x + <br>');
x++
}">
</form>
</body>
</html>
:confused: