I am try to edit the html through Javascript with gdocument.getElementById but I always come across the error: Uncaught TypeError --- Cannot set property 'innerHTML' of null
Here is my very simple code
<html>
<head>
<title>External .js File- Page 3</title>
</head>
<body>
<script language="JavaScript">
document.getElementById("text").innerHTML = "Hi!";
</script>
<article id="text"></article>
</body>
</html>