Entry
window.close() doesn't close my popup after i use window.opener.location.href='url'; Why?
Jan 28th, 2003 03:40
Klaus Bolwin, Jazzy M,
insert into the head:
<script type="text/javascript">
var Info = window.open("file.htm", "secondary window");
</script>
and into the body:
<input type="button" value="close the window" onClick="Info.close()">
However, after changing the content of the opener window, the object
reference to the opened window is lost, this will result in an undefined
reference when closing the window.