Yaa I think we are fine when we are using JavaScript in parent window to open child window, or we can say when we use “input type=button”
<input type="button" value="Edit In CuteEditor" onclick="popupCuteEditor('f1','t1')">
but in our case we are using asp button.
<asp:Button id=”view” runat=”server” onclick=”view”>
so in this case child window is loosing its focus, when we try to open it from the parent window,
and also please note that we are using cute editor in the parent window.
Here is the code I am using to open it :
protected void view(object Src, EventArgs E)
{
Response.Write("<SCRIPT LANGUAGE='JavaScript'>");
Response.Write("var winprops height=685,width=805,top=15,left=105,scrollbars=yes,resizable=no';");
Response.Write("var win = window.open('AlViewEmailContent.aspx?co_id=" + m_sCompanyId + "', 'viewWin', winprops);");
Response.Write("if (parseInt(navigator.appVersion) >= 4)");
Response.Write("win.window.focus();");
Response.Write("</SCRIPT>");
}
and also child window was opening fine in version 4 , with same code.