mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
12 lines
420 B
HTML
12 lines
420 B
HTML
<html>
|
|
<head>
|
|
<title>DOM firstElementChild reference</title>
|
|
<link rel="stylesheet" type="text/css" href="tst.css">
|
|
</head>
|
|
<body>
|
|
<h1>DOM firstElementChild reference</h1>
|
|
<p><b>head.firstElementChild:</b> <script>document.write(document.head.firstElementChild.textContent);</script></p>
|
|
<p><b>body.firstElementChild:</b> <script>document.write(document.body.firstElementChild.textContent);</script></p>
|
|
</body>
|
|
</html>
|