Search content within the blog

Friday, December 26, 2008

Refresh parent window on closing child window

function refreshParent() {
window.opener.location.href = window.opener.location.href;

if (window.opener.progressWindow)

{
window.opener.progressWindow.close()
}
window.close();
}

We can use this on any button click event in child window or on window unload event.

No comments:

Post a Comment