I have opened a popup window and trying to refresh the parent window before closing parent window.
Below is my code. I tried using window.top, top.location, etc but nothing working for me!
Any help?
$("#closeit").click(function(){
opener.location.focus();
opener.location.reload();
window.close();
});
you need to handle the unload event handler in the pop-up and do the reloading in the main window. In the main window, add
In the pop-up: