Posted by: prajapatinilesh | November 22, 2007

Close Main Parent Window

<html>
<head>This is head <title> this is title</title>
<script language=”JavaScript” type=”text/javascript”>
<!–
function closeW()
{
window.opener = self;
window.close();
}
// –>
</script>
</head>
<body>
<form>
<center> this is my page </center>
<a href=”#” onclick=”javascript:window.close();”>close (For IE only with warning of close window)</a> <br />
<a href=”#” onclick=”javascript:window.open(”,’_parent’,”);window.close();”> mozilla close -> for version less 2.0</a> <br />
<a href=”javascript:window.opener=”; window.close();”>  Close Main Window without Confirmation In IE </a> <br />
<a href=”javascript:window.opener=’x’;window.close();”>Close Main Window without Confirmation In IE</a> <br />
<a href=”javascript:window.opener=self;window.close();”>Close Main Window without Confirmation In IE</a>
</form>
</body>
</html>

But still i am not abale to close for firfox 2.0 version…

Thanks,

Nilesh


Responses

  1. If you want to close self winows without confirmation then visit http://technoexperts.blogspot.com/2008/08/close-window-without-javascript-alert.html for details.


Leave a comment

Categories