Hi, I am opening a popup:
function openPopup() {
RetVal = window.showModalDialog("chooseProducts.aspx", "", "dialogHeight: 330px; dialogWidth: 450px;scroll:no");
}
In a popup, when I click this button, a new window opens (with a popup):
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="savingImpr" OnClientClick="window.close();"/>
I am trying to close the current popup in front of this new window. But this new window is a display. Could you help me, thanks!
EDIT
I am trying to return false after widow.close in a popup window, ok the new window does not fire, but the Onclick event does not fire.
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="savingImpr" OnClientClick="window.close();return false;"/>
Do you have any suggestions?
source
share