Is there a JavaScript function to refresh the parent page?

You cannot write a javascript function to refresh parent page from a Modal child pop-up window. Instead, you can put the code to refresh the page just below the line that actually opens the modal popup in the parent page.
For More Information Please Refer:
https://www.codeproject.com/articles/25388/accessing-parent-window-from-child-window-or-vice
You May Also Like to Read: