HTML DOM Document strictErrorChecking property

Definition and usage

Not recommended strictErrorChecking The property. Do not use it.

strictErrorChecking The property returns in all new browsers undefined.

Note:strictErrorChecking The property is a DOM Core Level 3 (2004) feature.

It should control whether the browser should throw error exceptions for DOM operations.

Alternative:

JavaScript "use strict"

Example

Return the document's DOM error settings:

document.strictErrorChecking;

Try it yourself

Syntax

Return strictErrorChecking:

document.strictErrorChecking

Set strictErrorChecking:

document.strictErrorChecking = true|false

Return Value

Type Description
Boolean Value

If strictErrorChecking is enabled, it is true.

Returns undefined in all new browsers.