how to call a javascript function onClose of pop-up window
I have pop-up page in apex application. When the user closes the pop-up, I want to refresh the parent page with the following function. How do I call this function?. any ideas are appreciated.
function refreshParent(){
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
}
}
Thanks,
Surya