I am trying to close an iframe using a button click, but my current code is not working as expected:
<td>
<a href="utility.htm" toptions="group = links, shaded = 1, type = iframe, effect = fade, width = 900, height = 900, layout = quicklook">
<asp:ImageButton ID="btn_utility_serv" runat="server" width="244" height="71"
onclick="btn_utility_serv_Click" />
</a>
<%-- <img src="images/demo_20.jpg" width="244" height="71" />--%>
</td>
After clicking the btn_utility_serv button, the iframe window opens. Within that window, there is a Close button. I need to have the ability to close this iframe window when the Close button is clicked.
This is how I've attempted to achieve this functionality:
<a href="javascript: parent.window.close()">
<img alt="" src="images/Close.png" style="border-color: #800000" />
</a>