Hi Experts,
I want close child window from parent window after opening/saving text document.I don't have child window code.So no control over child window in parent. I am trying to access properties & methods of child window but getting error "Permission Denied".
Closing of child window is fine but i am not getting child window event in parent. I mean how to know that child window has completed task.
My code is as below:
This is immediately closes window. And also i don't want to use timer.
Regards,
Shilpa
I want close child window from parent window after opening/saving text document.I don't have child window code.So no control over child window in parent. I am trying to access properties & methods of child window but getting error "Permission Denied".
Closing of child window is fine but i am not getting child window event in parent. I mean how to know that child window has completed task.
My code is as below:
Code:
function checkWindow() {
if (childWindow) {
window.clearInterval(intervalID);
childWindow.close();
}
}
$(document).ready(function () {
if ($("#ReportUrl").val() != "") {
var url = $("#ReportUrl").val();
debugger;
childWindow = window.open(url);
intervalID = window.setInterval(checkWindow, 500)
}
Regards,
Shilpa
Comment