What errors does XMLHttpRequestEventTarget.onerror trigger?

  • 0
    Hello!

    Dealing with ajax. I can't understand one moment.
    I tried to execute the request with the internet disconnected, but for example onerror did not work for this error.
    So what errors does XMLHttpRequestEventTarget.onerror trigger?
    In the documentation https://developer.mozilla.org/ and https://learn.javascript.ru/ I have not found information on this issue.
    JavaScript Jase Farley, Apr 25, 2020

  • 1 Answers
  • 0
    For example, when the request fails due to CORS, or the dns is not resolved
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!