Source Code:
(back to article)
Submit
Result:
Report an issue
<div id="example"></div> <script> const element = document.getElementById('example'); element.innerHTML = 'nodeName: ' + element.nodeName; </script>