HTML DOM Document strictErrorChecking eigenschap

Definitie en gebruik

Niet aanbevolen strictErrorChecking Eigenschap. Gebruik het niet.

strictErrorChecking Het eigenschap retourneert in alle nieuwe browsers. undefined.

Opmerking:strictErrorChecking Het eigenschap is een kenmerk van DOM Core Level 3 (2004).

Het zou moeten bepalen of de browser fouten moet gooien voor DOM-operaties.

Alternatief:

JavaScript "use strict"

Voorbeeld

Retourneer de DOM-foutinstellingen van het document:

document.strictErrorChecking;

Probeer het zelf uit

Sintaxis

Retourneer strictErrorChecking:

document.strictErrorChecking

Instellen strictErrorChecking:

document.strictErrorChecking = true|false

Return value

Type Description
Boolean value

If strictErrorChecking is enabled, it is true.

Returns undefined in all new browsers.