I am using the following code to generate a popup window once a hyperlink has been clicked:
currentUserLink.NavigateUrl = "javascript:OpenPopUpPage('/_Layouts/newTest/PopUpEditor.aspx');";
Since i wish that the parent window to be refresshed on closing the popup window i used the window.onunload and applied the following code :
<script type="text/javascript">
window.onunload = function () {
window.opener.location.reload();
};
</script>
yet the following code is not working. What is missing in the code?