Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

resetError

resetError

Resets a saved error code to zero.

Method of

Install object

Syntax

void resetError ();

Parameters

None.

Returns

Nothing.

Description

The resetError method resets any saved error code to zero. See getLastError for additional information.

Example

To reset the last error code to zero:

resetError();

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Fredchat, Rod Whiteley
 Last updated by: Sheppy,