Close Popup Window and Refresh Parent Page

I needed this simple code tonight, I tried many ways, but this one worked perfectly. It firstly closes your popup window, and refresh the parent page then.

You can use it like this: