title: Using a javascript function to load a page in an iFrame
body: <p>I'm trying to use a Javascript function to load a web page in an iframe named "cake". How can I do that? </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;button onclick=[function]&gt;Load page in iframe&lt;/a&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>