Js code:
window.onerror = function(message, source, lineno)
{
alert("Ошибка:"+message +"\n" + "файл:" + source + "\n" + "строка:" + lineno);
};
jQuery code:
$(window).bind('error', function (event)
{
console.log(event);
//event.data
//.message ?
//.lineno ?
//.source ?
}
);
How get "message", "lineno" and "source" values from jQuery-event? Value event.data is null.