title: HTML, set iframe src as a javascript variable
body: <p>I would like to display a window in my webpage of another webpage, hopefully via iframe.  I need to set the src as a javascript variable, here is the code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;title&gt;my webpage&lt;/title&gt;&lt;/head&gt;
  &lt;SCRIPT language=JavaScript type=text/javascript&gt;
  function GoToURL(j) {
  var URLis = document.URLframe.Dest.value
  document.write("&lt;center&gt;&lt;iframe src=\"http://www.example.com\"/ width=1350 height=500     seamless&gt;&lt;/center&gt;");
      }
  &lt;/SCRIPT&gt;
  &lt;FORM name=URLframe&gt;
  &lt;TABLE align=center border=0&gt;
  
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD vAlign=center align=middle&gt;&lt;BR&gt;&lt;INPUT maxLength=50 size=50 
    name=Dest&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;TR&gt;
  &lt;TD align=middle&gt;
    &lt;P&gt;&lt;INPUT onclick=GoToURL(this) type=button value="                       Go to..                                " name="Go to"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to set the iframe src to the variable URLis, simply put.  I am somewhat of a newb in both html and javascript, so please keep as simple as possible.  Do you have any suggestions or ideas for a way to set the iframe src as URLis variable?</p>
  
  <p>Thank you.</p>