mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
13 lines
298 B
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>
|