Document strictErrorChecking Property - Javascript DOM

Javascript examples for DOM:Document strictErrorChecking

Description

The strictErrorChecking property sets or gets whether a document has a strict error checking.

Default value is true.

Set the strictErrorChecking

Return Value

A Boolean, true or false

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button onclick="myFunction()">test</button>

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

<script>
function myFunction() {/*  w  ww  .  j  a v  a  2s  .c  om*/
    var x = document.strictErrorChecking;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials