Forum Moderators: open
Senario: When I open popupwindow and enter the values and save it to DB, and after that close the popup. When I open the same popupwindow from either page1 or page2 and submit the changes i want the openerpage to be reloaded. Who do I find out whish page is the opener?
My test is:
function closeAndRefresh(url)
{
if (window.opener == TimeList)
{
opener.status = "";
opener.parent.main.location.href = url;
top.close();
}
else if (window.opener == TimePersonal)
{
opener.status = "";
opener.parent.main.location.href = url2;
top.close();
}
else
{
opener.status = "";
top.close();
}
}
But this doesn´t work.