I am trying to have the user sign in through a popup window. When they click the link to the popup window which is a php variable they can sign in. When the window closes
To reload a page, you can set the location property as the current value, like this:
window.location = window.location;
So for your case, you would use, literally:
onunload="window.opener.location = window.opener.location;"
You can also use the reload
method of the location
object:
onunload="window.opener.location.reload();"
This is the preferred method.
Also, please refer to the accepted answer for your previous question: Refreshing Parent window after closing popup
Documentation
window.location
on MDN - https://developer.mozilla.org/en/DOM/window.locationwindow.opener
on MDN - https://developer.mozilla.org/Talk:en/DOM/window.opener