Hi all good evening,
I have parent window "ParentForm" & child window "Popup.aspx". From the parent window in a
button (onClientClick")
i am opening the Child window. thats ok.
Now the problem is when user is press escape that
popup.aspx
will close that's also i have done.
But while closing the Child window, My control focus need to be on Parent window
button(btnSubmit)
button. I google but not got a good idea, any body plz help me.
This is the code i am using to close the popup window
function doClose(e) {
if (!e) e = window.event;
if (e.keyCode) {
if (e.keyCode == "27") {
window.close();
}
}
else if (e.charCode) {
if (e.charCode == "27") {
window.close();
}
}
} document.onkeydown = doClose;
The above function is called in
popup.aspx (body onKeydown="doClose(evt");"
Thanks in advance, sorry for the english.