Hi guys-
I'm trying to close a window (index.html) that opens a pop up,homepage.html(the pop up contains my homepage, a frameset). The problem is I keep getting that IE message about "The webpage is trying to close a window..." Is there a simple way to avoid this, based on the code I already have?I want the pop up to load automatically and the index.html to close immediately without a button or text link to click on. Thanks so much for any help you can offer! Here's the code:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>INDEX</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
window.close()
}
//-->
</script>
</head>
<body bgcolor="#009999" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_openBrWindow('/Homepage.html','Homepage','toolbar=yes,location=yes,menubar=yes,scrollbars=yes,width=775,height=410, top=0, left=0')" >
<a href="javascript:window.close();"></a>
<p align="left"> </p>
<p align="center"> </p>
</body>
</html>
I'm trying to close a window (index.html) that opens a pop up,homepage.html(the pop up contains my homepage, a frameset). The problem is I keep getting that IE message about "The webpage is trying to close a window..." Is there a simple way to avoid this, based on the code I already have?I want the pop up to load automatically and the index.html to close immediately without a button or text link to click on. Thanks so much for any help you can offer! Here's the code:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>INDEX</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
window.close()
}
//-->
</script>
</head>
<body bgcolor="#009999" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_openBrWindow('/Homepage.html','Homepage','toolbar=yes,location=yes,menubar=yes,scrollbars=yes,width=775,height=410, top=0, left=0')" >
<a href="javascript:window.close();"></a>
<p align="left"> </p>
<p align="center"> </p>
</body>
</html>