Instead, you can put the code to refresh the page just below the line that actually opens the modal popup in the parent page. Since code exceution on parent stops at the point when the modal pop window is opened, the next line is executed only after the modal popup has been closed. So if you put the reload call just below the call to open modal popup, the parent would refresh immediately the modal popup is closed.
Example – To refresh parent page on closing Modal child pop-up window.
….on Parent page
In the above example the first statement opens a modal popup and pauses the execution as long as the popup is open, the next statement reload() is executed right after the child modal popup window is closed.