window.opener becoming null after 10 seconds
function refreshMe()
{
var openerObj = window.opener;
window.close();
alert(openerObj);
openerObj.opener.location.href = openerObj.opener.location.href;
}
openerObj has a value of [object DOMWindow] when a new window pops up. But when I wait approximately 10 seconds the value is becomes null.
Any suggestions or advice you may have is appreciated.
Macbook, Mac OS X (10.5.8), Safari 4.0.3 (5531.9)