Looping to change urls in a single tabe not working
<p>I am having issues trying to get this working. It works but then all it does is take me back to the loop.html file where the script resides.</p>

<p>What im trying to do:
I want the user, me, to input urls seperated my a space.
Then it splits them on the spaces. Then they are arranged in an array.
Then i want it to cycle through each url. Not needing the page to load though. then waiting x amount of time then goes to the next one.</p>

<p>Any help would be appreciated.
My code</p>

<pre><code>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
function sleep(ms)
{
    var dt = new Date();
    dt.setTime(dt.getTime() + ms);
    while (new Date().getTime() &lt; dt.getTime());
    return;
}

function launchproducts (form) {
var milli = form.inputbox2.value;
var product_numbers;
var input_from_user = form.inputbox.value;
product_numbers = input_from_user.split(" ",100000);
var one = window.open("about:blank", 'pop');
        for ( var i = 0; i &lt; product_numbers.length; i++) {
            var launch_code = product_numbers[i];
            one.location.href = launch_code;
            sleep(milli);
        }
}
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;FORM NAME="myform" ACTION="" METHOD="GET"&gt;Enter product numbers: &lt;BR&gt;
&lt;INPUT TYPE="text" NAME="inputbox" VALUE=""&gt;&lt;P&gt;
&lt;METHOD="GET"&gt;Enter milliseconds here: &lt;BR&gt;
&lt;INPUT TYPE="number" NAME="inputbox2" VALUE="5000"&gt;&lt;P&gt;
&lt;INPUT TYPE="button" NAME="button" Value="Start" onClick="launchproducts(this.form)"&gt;
&lt;/FORM&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
</code></pre>
