HTML - DOM Document strictErrorChecking Property



HTML DOM document strictErrorChecking property is used to determine whether document enforce strict error checking or not. It deprecated property. It returned a boolean value, true when strictErrorChecking is on and false otherwise.

Syntax

Set the strictErrorChecking
document.strictErrorChecking=true|false;
Get the strictErrorChecking
document.strictErrorChecking;

Return Value

It returns undefined in all new browsers.

Example of HTML DOM Document 'strictErrorChecking' Property

Here is an example to get the strictErrorChecking property which returns undefined.

<!DOCTYPE html>
<html lang="en">
<head>
    <title>
        HTML DOM document strictErrorChecking Property
    </title>
</head>
<body>
    <button onclick="fun()">
        Click me
    </button>
    <p id="type"></p>
    <script>
        function fun() {
            let x = document.strictErrorChecking;
            document.getElementById("type").innerHTML = x;
        }
    </script>
</body>
</html>

Supported Browsers

Property Chrome Edge Firefox Safari Opera
strictErrorChecking No No No No No
html_dom.htm
Advertisements