How to call on text from a textbox to set a variable in javascript
<p>I have a bit of a predicament. I am trying to run a variable on a loop so that it can change the loop. Here is the code that I have at the present time.</p>

<pre><code>&lt;FORM NAME="myform" ACTION="" METHOD="GET"&gt;
&lt;INPUT TYPE="text" NAME="inputbox" id="Variable"&gt;&lt;P&gt;
&lt;/FORM&gt;

&lt;script type="text/javascript"&gt;
document.getElementById("Variable").value = i;
var i=5;
for (i=0;i&lt;=5;i++)
{
document.write(" " + i);
document.write("&lt;br /&gt;");
}
&lt;/script&gt;
</code></pre>

<p>I am trying to call upon the text in the textbox from the form in order to define var i. I would also like to point out that I am no master of HTML, and if you see that I have done this all wrong, feel free to tell me that it cannot be done.</p>
