javascript: how to display script errors in a popup alert?
Posted
by poewrboy
on Stack Overflow
See other posts from Stack Overflow
or by poewrboy
Published on 2010-04-09T03:44:48Z
Indexed on
2010/04/09
3:53 UTC
Read the original article
Hit count: 249
I want to display script errors in a popup alert instead of showing them in the browser console.
window.onerror = function() {
var message = /* get error messages and put them here */;
alert(message);
return true;
};
© Stack Overflow or respective owner