Catch JavaScript errors
-
Is it enough methods for capture and report JavaScript errors on web page on computer and mobile devices?
window.onerror = function (msg, url, lineNo, columnNo, error) {
//post data for log
return true;
}; -
Is it enough methods for capture and report JavaScript errors on web page on computer and mobile devices?
window.onerror = function (msg, url, lineNo, columnNo, error) {
//post data for log
return true;
};Wrong forum - this is for C#, as it says at the top of the page... Try here: JavaScript Discussion Boards[^]
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Is it enough methods for capture and report JavaScript errors on web page on computer and mobile devices?
window.onerror = function (msg, url, lineNo, columnNo, error) {
//post data for log
return true;
};You have already posted this in the ASP.NET forum: Capture and report JavaScript errors - ASP.NET Discussion Boards[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer