title: How to close a (javascript iframe) in asp.net?
body: <p>I want to close a (iframe) by a button click, but my code isn't working:</p>
  
  <pre><code>&lt;td&gt;
    &lt;a href="utility.htm" toptions="group = links, shaded = 1, type = iframe, effect = fade, width = 900, height = 900, layout = quicklook"&gt;
      &lt;asp:ImageButton ID="btn_utility_serv" runat="server" width="244" height="71" 
                       onclick="btn_utility_serv_Click" /&gt;
    &lt;/a&gt;
    &lt;%-- &lt;img src="images/demo_20.jpg" width="244" height="71" /&gt;--%&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>When I click the btn_utility_serv, the iframe window will open. In that window there will be a button Close. I need to close this iframe window when I click Close button.</p>
  
  <p>I wrote like this:</p>
  
  <pre><code>&lt;a href="javascript: parent.window.close()"&gt;
    &lt;img alt="" src="images/Close.png" style="border-color: #800000" /&gt;
  &lt;/a&gt;
  </code></pre>