代码示例:(标识:jsck_doc_stricterror)
<!DOCTYPE html>
<html>
<body>

<h1>Document 对象</h1>

<h2>strictErrorChecking 属性</h2>

<p>本文档的 strictErrorChecking 是:</p>

<p id="demo"></p>

<p>strictErrorChecking 属性已弃用。它在所有新浏览器中返回 <b>undefined</b>。</p>

<script>
document.getElementById("demo").innerHTML = document.strictErrorChecking;
</script>

</body>
</html>
运行结果: