Jump to content

NoraL

Members
  • Posts

    4
  • Joined

  • Last visited

NoraL's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. NoraL

    onerror

    This didn't work either. Actually the document.onerror in both cases didn't even get fired for syntax errors when the window.onerror did fire for syntax problems, just not for runtime errors.
  2. NoraL

    onerror

    Thanks anyway.
  3. NoraL

    onerror

    I got the same results with document.onerror as I did with window.onerror.
  4. NoraL

    onerror

    I have the following code in my page:<script type="text/javascript">function handleError(message, URI, line) { window.location.replace("JavascriptError.htm?" + message + "," + URI + "," + line); return true;}window.onerror = handleError;</script>When my page encounters a syntax error, it fires the event fine. But when the page has what I consider to be a runtime error, it does not fire in IE 6. (It does seem to be firing in FireFox.)From all the documentation I have read, it says it should fire for all JavaScript errors. And I haven't found anyone else having this same problem.An example of an error that doesn't cause the event is as follows:Java Script ErrorDescription:A dynamic link library (DLL) initialization routine failed.And then the soure and line number are given.That's one example, but I can cause other JavaScript errors that aren't firing the code in IE 6.Is there something wrong in my code? Or has anyone else noticed this problem?Thanks,Nora
×
×
  • Create New...