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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing pop-window in Netscape delay

Status
Not open for further replies.

FhHouse

Programmer
May 28, 2001
16
0
0
US
I have a pop-window which is a form. it calls an asp page which performs an update to a db. then outputs the following html. Which should close the pop-up and refresh the opening window.

Code:
<html>
<head>
<script language=&quot;Javascript&quot;>
function ManipulateWindows()
{
	window.opener.location.href = 'list.asp';
	window.self.close();
}
</script>
</head>

<body onLoad=&quot;ManipulateWindows();&quot;></body></html>

The problem is Netscape just hangs, once i click on the opening window, it refreshs and the pop-up goes away.
i have tryed

window.opener.location.href = 'list.asp';
window.opener.focus();
window.self.close();
and changing the order etc..

any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top