Use JavaScript to access the content of the heading.

<html>
<body>
  <h1 id="title">Heart of Darkness</h1>
  <script src="script.js"></script>
</body>
</html>]]>

Make sure to assemble document.getElementByID("title").