How do I get this to count from the "startnumber" I chose to the "endnumber" I chose? I got it to count from 1 to the end number, but I don't know how to get it to print from the number I choose like 4 to 10.
<HTML>
<head>
<title>
Java Assignment 3
</title>
</head>
<body>
<BODY BGCOLOR=black text=white>
<script type="text/javascript">
var name;
var startnumber;
var endnumber;
var count;
count=0;
name=prompt("Please enter your name", "");
document.write("Hello ", name,"<br>");
startnumber=prompt("Which number would you like to start with?", "");
document.write("Starting number: ", startnumber, "<br>");
endnumber=prompt("Which number would you like to end on?", "");
document.write("Ending number: ", endnumber, "<br>");
while (count!=endnumber)
{
count=count+1;
document.write(count, "<BR>");
}
</body>
</html>
</script>