title: CRM 2013 Unintended Nested Iframes
body: <p>I'm working in CRM 2013. A business requirement was to add a dashboard as a subarea to the site-map. I added the sub-area with an html web-resource added to put the appropriate dashboard in an IFrame. </p>
  
  <p>The problem occurs when I try to open one the activity record in the IFrame's sub-grid. The IFrame creates another IFrame within itself (the Iframes nest). Below is my HTML and a screenshot of the issue.</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;iframe name="dashboardIframe" title="Content Area" id="dashboardIframe" src="about:blank" style="border: 0px currentColor; left: 0px; width: 100%; height: 100%; right: 0px; overflow: hidden; visibility: visible;"&gt;&lt;/iframe&gt;
  &lt;script type="text/javascript"&gt;
      var openMyActivities = function () {
      var serverUrl = document.domain;
      var dashboardUrl = "https://" + serverUrl + "/dashboards/dashboard.aspx?dashboardId=%7b88dada11-007f-e311-940b-005056b72da0%7d&amp;dashboardType=1030&amp;pagemode=iframe";
      document.getElementById("dashboardIframe").src = dashboardUrl;
  };
      window.onload = setTimeout(openMyActivities, 10);
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I wanted to post a picture of the nested IFrame issue, but because I'm new to contributing to StackOverflow so I don't have enough reputation to do so.</p>