onerror
Summary
Indicates an error has occurred.
Property of apis/appcache/ApplicationCacheapis/appcache/ApplicationCache
Syntax
var result = ApplicationCache.onerror;
ApplicationCache.onerror = value;
Return Value
Returns an object of type nullnull
Notes
This event can be generated by the following errors:
- The manifest referred to a 404 or 410 page, preventing the page from being loaded.
- A page referenced in the manifest failed to download properly.
- A fatal error occurred while downloading the resources listed in the manifest.
- The manifest was changed while the update was being processed.
If there is more than one event, the error event will be the last one in the sequence. Alternatively, you could use an anonymous delegate function such as
object.onerror = function (e) { … }
where e is the cached event.
Related specifications
- W3C ApplicationCache Specification
- W3C Editor’s Draft
Attributions
Microsoft Developer Network: Article