HTML DOM strictErrorChecking 屬性

Document 對象參考手冊 Document 對象


定義和用法

strictErrorChecking 屬性可設置或返回是否強制進行錯誤檢查(error-checking)。

在設置為 false 後,實現不會對每個可能的錯誤情況進行測試。此屬性被默認設置為 true。

默認值為 true.


流覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

目前所有主流流覽器都不支持 strictErrorChecking 屬性。


語法

設置 strictErrorChecking

document.strictErrorChecking=true|false

返回 strictErrorChecking

document.strictErrorChecking

技術細節

返回值: Boolean, true|false
DOM 版本 Core Level 3 Document Object


Document 對象參考手冊 Document 對象