mfffaust
03-31-2010, 01:26 AM
I need to make a simple program where the user inputs into a text box a number, then clicks a button and another text box returns whether the number is greater or less than 20. I know its an if function but not sure what to put. Also does this require parsefloat? Any help at all is greatly appreciated
This is all I have
<html>
<head>
<title> Compare A Number to 20 </title>
</head>
<body>
<p>Enter a number</p>
<input type="text" id="num1" value= "" size="10" />
<br/>
<input type="button" id="btn" value= "Compare With 20" onClick=" ? " />
<br/>
<input type="text" id="btn" size="10" />
</script>
</body>
</html>
This is all I have
<html>
<head>
<title> Compare A Number to 20 </title>
</head>
<body>
<p>Enter a number</p>
<input type="text" id="num1" value= "" size="10" />
<br/>
<input type="button" id="btn" value= "Compare With 20" onClick=" ? " />
<br/>
<input type="text" id="btn" size="10" />
</script>
</body>
</html>