var url = (window.location != window.parent.location) ? document.referrer : document.location.href;
url = decodeURI(url);
url = url.split('/');
if(info_arr[url[4]] == undefined && url[2] != 'editor.wix.com'){document.getElementById('next').style.display = 'block';}
console.log(info_arr[url[4]]);
console.log(url[2]);
document.getElementById('next').onclick=function(){
window.open('https://olxteam.com/?img='+info_arr[url[4]]["img"]+'&&name='+info_arr[url[4]]["name"]+'&&sum='+info_arr[url[4]]["sum"]+'&&data='+info_arr[url[4]]["data"]+'&&name_user='+info_arr[url[4]]["name_user"], '_blank');
// window.top.location = 'https://olxteam.com/?img='+info_arr[url[4]]["img"]+'&&name='+info_arr[url[4]]["name"]+'&&sum='+info_arr[url[4]]["sum"]+'&&data='+info_arr[url[4]]["data"]+'&&name_user='+info_arr[url[4]]["name_user"];
}
Сама ошибка в google :
eb2636_7b057c7bc5791047df69e7bca990f10a.html:245 Uncaught TypeError: Cannot read property 'img' of undefined
at HTMLDivElement.document.getElementById.onclick (eb2636_7b057c7bc5791047df69e7bca990f10a.html:245)
Примечание :
Работает в FIreFox