title: How to close an iframe window?
body: <p>hi every one now i am working on Iframe  the problem is the iframe doesn't close completely,while reloading the page iframe is running on the background and i am unable to access the pages after reloading its because of iframe button which makes me trouble in accessing the page.</p>
  
  <p>i have attached my iframe code below suggest me the possible solutions.</p>
  
  <pre><code>&lt;div class="top" onclick="removeIFrame();"&gt;&lt;/div&gt;
  &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt;
    &lt;div class="modal-dialog" role="document"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
          &lt;h4 class="modal-title" id="myModalLabel"&gt;New Message&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;iframe id="templatesrc" name="templatesrc" src="?do=manualupgrade&amp;id=&lt;AJDF:output&gt;$smarty.get.id&lt;/AJDF:output&gt;" width="690" height="400" frameborder="0"&gt;&lt;/iframe&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>