Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    Any idea of JSONP implementations, like that in jQuery support this? Everything I've read here about detecting that JSONP failures to load says it can't be detected but a timeout can be a workaround, and a timeout was added to a recent version of JSONP. It seems that this answer provides something better than the timeout though - is that correct? Commented Dec 26, 2011 at 21:29
  • 1
    example possible please?
    – rogerdpack
    Commented Oct 27, 2016 at 20:23
  • 18
    <script src="nonexistent.js" onerror="alert('error!')"></script> fiddle
    – Rudey
    Commented Feb 17, 2017 at 10:48
  • 1
    @Rudey Uncaught SyntaxError: Unexpected token '<' (in latest Chrome)
    – daleyjem
    Commented Feb 29, 2020 at 5:25
  • @daleyjem sounds like you've attempted to put a HTML tag in JavaScript. <script src="nonexistent.js" onerror="alert('error!')"></script> should go in your HTML file, not JS.
    – Rudey
    Commented Mar 3, 2020 at 16:18