I am using jQuery UI for opening the popup, I wanted to refresh the parent window once the window is closed.
In jQuery the code is
$("#submitBtn").click(function(){
location.reload();
});
Then the page appears with the below window. The URL is https. How I can avoid this.

Thank you for help in advance, please let me know if any additional information required.
For my situation I have removed the reload() option and used jQuery .load function.
it worked.