To make changes to the text between the tags, we need to retrieve it with .innerHTML.

<html>
<body>
<h3>Tweeter</h3>
<p id="messages">New Messages</p>
<script>
document.getElementById("messages").innerHTML;
</script>
</body>
</html>]]>

Make sure to pick ., followed by innerHTML.