Hi Drew,
As for the problem you mentioned, I've performed a simple test on my local
side. I use a XP Pro machine with SP2 installed and IE6. It seems that I
can close the popup window correctly via the script you provided. I'm
thinking there maybe something else which block the popup window from
closing. Is this problem occuring on many other machines on your side?
Anyway, here is the test pages I used, you may also have a try on your
side to see whether it'll return the same result:
============opener window===============
<body>
<form id="Form1" method="post" runat="server">
<table width="100%" align="center">
<TR>
<TD><input type="button" value="popup"
onclick="window.open('popuppage.aspx');"/></TD>
</TR>
.................
==============popuppage.aspx=============
<HTML>
<HEAD>
<title>popuppage</title>
</HEAD>
<body runat="server" id="mybody">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 8px; POSITION:
absolute; TOP: 8px" runat="server"
Text="Button"></asp:Button>
</form>
</body>
</HTML>
===========popuppage codebehind=========
private void Button1_Click(object sender, System.EventArgs e)
{
Page.RegisterStartupScript("closescript","<script
language='javascript'>window.opener.focus(); window.close();</script>");
}
If there is any othe new findings, please also feel free to post here.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)