The strictErrorChecking property sets or gets whether a document has a strict error checking or not.
Default value is true.
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {// w w w . j a v a2 s.c om var x = document.strictErrorChecking; document.getElementById("demo").innerHTML = x; } </script> </body> </html>
The strictErrorChecking property returns a Boolean, true or false