netsurf/test/js/doc-dom2.html

13 lines
298 B
HTML

<html>
<head>
<title>DOM getElementById</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1 id="heading">Direct DOM element reference</h1>
<p>Before</p>
<script>document.write(document.getElementById("heading").textContent);</script>
<p>Afterwards</p>
</body>
</html>