<div class="codetitle"> <span><a style="CURSOR: pointer" data="38370" class="copybut" id="copybut38370" onclick="doCopy('code38370')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code38370"> <br><script language="javaScript"> <br> Function closeWindow () <br> { <br> window.opener = null; <br> window.open(' ', '_self', ' '); <br> window.close(); <br> } <br>< ;/script> <br><br><input type='button' value='Close Window' onClick="closeWindow()"> <br> </div> <br> or <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="30084" class="copybut" id="copybut30084" onclick="doCopy('code30084')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code30084"> <br><input type="button" value="Close window" onClick="window. opener = null; window.open(' ', '_self', ' ');window.close()"> <br> </div> <br><br>For closing the frame window<br><div class="codetitle"> <span><a style="CURSOR: pointer" data="8058" class="copybut" id="copybut8058" onclick="doCopy('code8058')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code8058"> <br><script language="javaScript"> <br> Function closeWindow() <br> { <br> window.opener = null; <br> window.open('', '_top', ''); <br> window.parent.close(); <br>} <br></ script> <br> </div>