You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
netsurf/test/js/dom-element-lastElementChil...

15 lines
654 B

<html>
<head>
<link rel="stylesheet" type="text/css" href="tst.css">
<title>DOM lastElementChild reference</title>
</head>
<body>
<h1>DOM lastElementChild reference</h1>
<noscript><p>Javascript is disabled</p></noscript>
<p><b>head.lastElementChild:</b> <script>document.write(document.head.lastElementChild.textContent);</script></p>
<p><b>body.lastElementChild:</b> <script>document.write(document.body.lastElementChild.textContent);</script></p>
<h1>DOM nodes should be 'null' if not present</h1>
<p><b>head.firstElementChild.lastElementChild:</b> <script>document.write(document.head.firstElementChild.lastElementChild);</script></p>
</body>
</html>