How would one do this

open a pop up window, and when done executing something in the pop up window, refresh the opening window and then close the pop up..

I'm thinking something like


window.opener.document.reload();
window.close();

although this doesn't work as I am asking for some help..

TIA

Billy