catching error event message from firefox
I can't find a way to catch the error message under firefox: window.addEventListener("error", handleException, false); ... function handleException(e) { alert(e); return false; } ... <script> throw new Error('sdasd'); </script> This enters very well the handleException method however the e parameter is an error event under firefox and I don't know how to get the associated message . In chrome for instance, I get either the message through e.message because after the error bubbles up to not being caught, there's an automatic error fired at window level (See this fiddle : the final error is