How to pass URL entered by user in form action on click of submit using Javascript
<pre><code>&lt;body&gt;
    &lt;form name="testarea" method="post" action="?URL"&gt;
        &lt;input type="text" id="test1" name="URL"/&gt;
        &lt;input type="submit" value="Submit"/&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p>Now I want to:</p>

<ol>
<li>Use the value entered by the user in the text box for the URL</li>
<li>For passing to form <code>action=''</code> on click of <code>Submit</code>. This need that same URL when passed on Submit will launch the URL in the same iFrame.</li>
</ol>
