Capture Contents Of Firefox/IE Error Console Through Code?
Is it possible to capture the contents of either the Firefox or IE javascript error console? I'm thinking adding a feature where when a user clicks the 'Report A Bug' link on my si
Solution 1:
you can hook into the window.onerror event and send a request to your server with the details.
Just be aware that it won't work on all browsers, and the details of the error will vary by browser. e.g. IE may return the oh so helpful: "Object does not support property or method" and you're left wondering which object, what property?... ;-)
Post a Comment for "Capture Contents Of Firefox/IE Error Console Through Code?"