Forum Moderators: open
If you are logged in the popup window shows "you are now logged in.." and
<form><input type=button value=' Close window ' onClick='javascript:window.close();'></form>
to close the window
But on the original window: "You are logged out, click here to log in (a href popup again)", if you refresh the status changes to logged in.. correct
so.. I'm looking for some javascript code to close the popup window and to (refresh or) reload the original window so that the status changes to "you are logged in"
But i don't know to give the original window a name, and how to combine those 2 javascript codes,
thx!
cedric
So you might use a line of code such as:
window.opener.location.reload()
<added>
It's interesting to note that in the forum BjarneDM linked to, the answer given used refresh(). AFAIK, that is not the EMCAScript standard. It may work in Explorer's jscript, but I'd suggest sticking with reload()