mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-18 02:02:36 +03:00
15 lines
375 B
HTML
15 lines
375 B
HTML
<html>
|
|
<head>
|
|
<title>Direct DOM element reference</title>
|
|
<link rel="stylesheet" type="text/css" href="tst.css">
|
|
</head>
|
|
<body>
|
|
<h1>Direct DOM element reference</h1>
|
|
<p>head</p>
|
|
<script>document.write(document.head.firstElementChild.textContent);</script>
|
|
<p>body</p>
|
|
<script>document.write(document.body.firstElementChild.textContent);</script>
|
|
<p>after</p>
|
|
</body>
|
|
</html>
|