Contents

onerror

A callback function that is called if the request fails due to an error.

Declaration

attribute function onerror;

Discussion

This attribute must be set to a function; for example, XMLHttpRequest.onerror = function () {}.

See Also

Implementing Callback Functions