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

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: