How do I change an Iframe from a text form? : <p>I am trying to have an iframe in which you can change the url of it with a text box.</p>

<pre><code>&lt;form action="/action_page.php"&gt;
 URL: &lt;input type="text" name="firstname" value="test.com"&gt; &lt;input type="submit" value="Visit"&gt;
&lt;/form&gt;
&lt;iframe width="560" height="315" src="https://www.example.com"&gt;&lt;/iframe&gt;
</code></pre>

<p>How would I go on doing this?</p>
