A
Asit
<META HTTP-EQUIV="expires" content="0">
<META HTTP-EQUIV="pragma" content="no-cache">
<html>
<head>
<title>Fidelity NetBenefits</title>
</head>
<body BGCOLOR="#ffffff">
<script LANGUAGE="JavaScript">
function NoFramesAllowed() {
if (this.top != this) {
top.location.href=this.location.href;
return;
}
}
function CloseWindow()
{
if (window.name != "")
window.name = "";
window.close();
}
</script>
<center>
<table WIDTH="620" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<tr><td></td><td COLSPAN="2"></td>
<td ALIGN="LEFT">
<form>
<input TYPE="BUTTON" onClick="CloseWindow()" VALUE="Click Here to
Close Your Browser">
</td>
</form>
</tr>
</table>
</center>
</body>
</html>
Save this as close.html
Open your Netscape 7 browser and then open this html file and click on
close button, it will not close the browser in Netscape but working
with Internet Explorer.
My Question is if the window is not being opened by the javascript,
then how to close the window by the Netscape ?
Is there any solution to this ?
Any help is appreciated.
Regards
Asit
<META HTTP-EQUIV="pragma" content="no-cache">
<html>
<head>
<title>Fidelity NetBenefits</title>
</head>
<body BGCOLOR="#ffffff">
<script LANGUAGE="JavaScript">
function NoFramesAllowed() {
if (this.top != this) {
top.location.href=this.location.href;
return;
}
}
function CloseWindow()
{
if (window.name != "")
window.name = "";
window.close();
}
</script>
<center>
<table WIDTH="620" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<tr><td></td><td COLSPAN="2"></td>
<td ALIGN="LEFT">
<form>
<input TYPE="BUTTON" onClick="CloseWindow()" VALUE="Click Here to
Close Your Browser">
</td>
</form>
</tr>
</table>
</center>
</body>
</html>
Save this as close.html
Open your Netscape 7 browser and then open this html file and click on
close button, it will not close the browser in Netscape but working
with Internet Explorer.
My Question is if the window is not being opened by the javascript,
then how to close the window by the Netscape ?
Is there any solution to this ?
Any help is appreciated.
Regards
Asit