netsurf/test/js/doc-dom2.html
Vincent Sanders 8f08f820f4 improve tests
2012-11-01 21:12:21 +00:00

17 lines
566 B
HTML

<html>
<head>
<title>DOM getElementById</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>DOM getElementById element reference</h1>
<p>This shows the text content of an element obtained using <a href="http://dom.spec.whatwg.org/#dom-document-getelementbyid">document.getElementById</a></p>
<p>Referenced text</p>
<p id="reftext">DOM getElementById element referenced test text</p>
<p>Inserted text</p>
<p><script>document.write(document.getElementById("reftext").textContent);</script></p>
<p>After inserted text</p>
</body>
</html>