blob: 01ce1292ef642cbf7f23165104b1a37cb3101b49 [file] [log] [blame]
<!-- Simple file to update text data programmatically -->
<html>
<head>
<script>
const textNode = document.createTextNode("");
function createText() {
const div = document.querySelector("div");
textNode.data = "Example text 1";
div.appendChild(textNode);
}
function updateText() {
textNode.data = "Example text 2";
}
</script>
</head>
<body onload="createText()">
<div id="test"></div>
</body>
</html>