summaryrefslogtreecommitdiff
path: root/test/js/doc-dom2.html
blob: 17a916c816c03252bc4efbf8b6773f7a32661cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<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>