I can’t get this to work can someone please help.
I am completely lost with this one.?
1.
Have the user type in the first box a number to start counting from.
Have the user type in the second box a number where to stop counting to.
Have the user type in a number to step up/down by when counting.
When the user presses the button this page will clear and the list of numbers will be displayed.
If the user uses the same starting and ending number alert them that is not valid.
The user can enter a starting number bigger than the ending number.
Take into account that a user might enter a positive or negative step value
<html>
<head>
<script type=”text/javascript”>
function add
r=document.form2.text3.value
j=document.form2.text4.value
}
for(I=r;I<=j;I=I+1){
if(x==y){
alert(“The numbers are the same”)
}
<script>
</HEAD>
<BODY>
Statring Number <input type=”text” id=”start”>
Ending Number <input type=”text” id=”end”>
Step by <input type=”text” id=”step”>
<input type=”button” onClick=”add”>
</body>
</html>