<html>
<body>
<p>Click the button to find out if the specified namespace is default.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> Internet Explorer 8 and earlier does not support the isDefaultNamespace method.</p>
<p id="demo"></p>
<script>
function myFunction() {
var d = document.documentElement;
var x = d.isDefaultNamespace("http://www.w3.org/1999/xhtml");
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_node_isdefaultnamespace by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:02:19 GMT -->
</html>