You could try something like this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script type="text/javascript">
function openWin(url){
newwin=window.open(url,'','width=400,height=400');
if(newwin){
window.onfocus=function(){newwin.window.close()}
}
}
</script>
</head>
<body>
<a href="test2.html" onClick="openWin(this.href);return false">Test</a>
</body>
</html>
Where test2.html is your popup obviously. If its open and focus is set to the parent window the popup will close.
That would go in the head tags of the parent page. Hmm an error is thrown when the user goes from a normal application like MS Word and back to the page.
Code:
The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
This may only happen locally, I'll upload the test files to my server and check. Yeah that happens on my server as well, only in IE though.