diff options
Diffstat (limited to 'test/js/doc-dom2.html')
-rw-r--r-- | test/js/doc-dom2.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/js/doc-dom2.html b/test/js/doc-dom2.html new file mode 100644 index 000000000..17a916c81 --- /dev/null +++ b/test/js/doc-dom2.html @@ -0,0 +1,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> |