Search notes:

DOM example: nodeType

nodeType is a property of the Node interface.
<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>setAttribute()</title>

  <script type="text/javascript">

function main() {

    var out = document.getElementById('out');

    out.innerHTML += 'document.nodeType:  ' + document.nodeType + '<br>';
    out.innerHTML += 'element.nodeType:   ' + out.nodeType      + '<br>';

}

  </script>

</head>
<body onload='main()'>

  <div id='out' style='background-color:yellow; font-family:monospace'>
  </div>

</body>
</html>
Github repository about-Document-Object-Model, path: /Node/nodeType.html

See also

DOM examples

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759407810, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/DOM/examples/Node/nodeType(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78