I absolutely love error reporting as fixing broken code leads to much greater reliability so I've been wondering of late if there is a way for me to capture XHTML and CSS errors logged in browser consoles? If so I could save the relevant information and send it to my server to be analyzed at a later point. Where would I start?
For clarification I'm not talking about JavaScript error handling of JavaScript errors nor do I want to write to the console, I want to read from it.
- John
JavaScript error handling...
window.onerror=function(msg,url,line) {alert('A JavaScript error has occurred...\n\nError: '+msg+'\n\nFile: '+url+'\n\nLine: '+line);}