function win_close(){ setTimeout(“ref()”, 1000); } function ref(){ opener.location.reload(); self.close(); }