HTML | DOM strictErrorChecking Property
The DOM strictErrorChecking Property sets or returns whether strict error checking can be enforced on a document or not. It is used to return a boolean value that is true or false. If true it means strict checking can be applied to the documents and if false then it cannot be applied. This property is true by default.
Return Value: Returns a Boolean, true or false.
Syntax
- To return:
documentObject.strictErrorChecking
documentObject.strictErrorChecking=true|false
Example:
<!DOCTYPE html> <html> <head> <title> HTML DOM strictErrorChecking Property </title> </head> <body> <h1>GeeksforGeeks</h1> <h2>HTML DOM strictErrorChecking Property</h2> <p id="geeks" onclick="MyGeeks()"> Hello Geeks! </p> <script> function MyGeeks() { document.getElementById("geeks").strictErrorChecking; } </script> </body> </html> |
Output:

Supported Browsers: The major browsers are not supported by DOM strictErrorChecking Property.
Recommended Posts:
- HTML | DOM li value Property
- HTML | DOM specified Property
- HTML | DOM URL Property
- HTML | DOM Bdo dir Property
- HTML | DOM value Property
- HTML | DOM id Property
- HTML | DOM dir Property
- HTML | DOM name Property
- HTML | DOM innerText Property
- HTML | DOM firstChild Property
- HTML | DOM implementation Property
- HTML | DOM innerHTML Property
- HTML | DOM previousElementSibling Property
- HTML | DOM offsetLeft Property
- HTML | DOM nextElementSibling Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : shubham_singh



