проблема onclose в опере
Приветствую, отчаялся при поиске решения данного вопроса и решил придти к Вам на форум за помощью Т_Т
Есть скрипт var socials = { myWin : null, interval : '', socialBT :function (url, param){ var features, w = 750, h = 770; var top = (screen.height - h)/2, left = (screen.width - w)/2; if(top < 0) top = 0; if(left < 0) left = 0; features = 'top=' + top + ',left=' +left; features += ',height=' + h + ',width=' + w + ',resizable=0, toolbar=0, scrollbars=yes'; socials.myWin = window.open(url+param, 'displayWindow', features); socials.interval = setInterval(function(){ if(socials.myWin != null) { document.getElementById('time').value=Number(docum ent.getElementById('time').value)+Number('0.5'); if(socials.myWin.closed) { alert('ok'); clearInterval(socials.interval); } } else { //alert('=(('); } },500); } } задаем значение url и param стороннего ресурса в моем случае url = http://www.facebook.com/sharer.php param = ?u=http://dev.moggu.ru/business/21/chto-nibud&t=Я могу что нибудь за $5&picture=http://dev.moggu.ru/pics/t/21-1.png?1304837524 во всех браузерах работает нормально а вот опера ругается выдает ошибку Uncaught exception: ReferenceError: Security error: attempted to read protected variable: closed Есть ли какое то другое решение узнать открыто окно или его уже закрыл пользователь? |
Часовой пояс GMT +3, время: 20:56. |