> Is it possible to use jQuery to find out if/when a JavaScript error/warning > occurs?
I have something like this on some pages: window.onerror = function(msg, file, line) { var img = new Image(); img.src = "/path/to/error.php?msg="+encodeURIComponent(msg)+ "&file="+encodeURIComponent(file) +"&line="+encodeURIComponent(line); }; Your server-side error.php (.asp, .jsp, whatever) should pull off the msg, file, and line query parameters and write them to a file or database. It can just return status "204 no content" since the script doesn't actually render an image. In Internet Explorer, the onerror event is NOT fired if script debugging is turned on. You can change the setting in Tools, Internet Options, Advanced tab.