Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i close parent window

Status
Not open for further replies.

csphard

Programmer
Apr 5, 2002
194
US
Using the following code i can open a window. However when the code fires to close the parent window i get the following message. I do i get it to close with out asking.


The web page you are viewing is trying to close the window
do you want to close this window


code

<html>

<head>
<title>URL&nbsp; Name&nbsp; Width&nbsp; Height&nbsp;&nbsp; Directories&nbsp;
Location&nbsp; Menubar&nbsp; Scrollbars&nbsp; Status&nbsp; Toolbar&nbsp;
Resizable</title>

<script language="JavaScript">
<!--
setTimeout('self.close()',5000);
//-->
</script>

<script language="JavaScript"><!--
function createWindow()
{
window.open ('testpage.htm', 'Jobsmart','menubar=no');
}
//--></script>
</head>

<body onLoad="createWindow()">
myTe
</body>

</html>




 

thread216-808784

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top