Javascript DOM HTML Document strictErrorChecking Property

Introduction

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

Default value is true.

View in separate window

<!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




PreviousNext

Related