This property specifies a callback function to be run when a DOMRequest
fails.
Note: This feature is available in Web Workers.
Syntax
request.onerror = function;
Where request is a DOMRequest
object and function is a JavaScript function to run when the request fails to complete successfully.
Specifications
Not part of any current specification.