Javascript Tip: Close Pop-up - Refresh Parent
It is a common task sometimes we need to force parent refresh on closing pop-up window which was opened from this parent window. There are many ways to make it work, however the most elegant way will be using location.href:
function CloseAndRefresh() { window.opener.location.href = window.opener.location.href; window.close(); }
Enjoy :)
Friday, May 16, 2008 11:12 PM