Write a dynamic iframe
<p>I wonder if the following is coded correctly:</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt; 
&lt;head&gt; 
&lt;title&gt;Sample Page&lt;/title&gt;
&lt;/head&gt; 
&lt;body&gt; 
&lt;div id="container"&gt;&lt;/div&gt;
&lt;script type="text/javascript"&gt;
var url = "http://www.example.com/";
var content = "&lt;iframe width='800' height='600' frameborder='0' src='" + url + "'&gt;&lt;\/iframe&gt;";
document.getElementById("container").innerHTML = content;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Many thanks in advance!</p>

<p>Mike</p>
