I am getting the error mention in the title of this question for the following java script:
var button = document.getElementById('button');
button.addEventListener('click', buttonAction);
function buttonAction(){
var box = document.getElementById('Box');
box.value = "show this";
}
The button and text box reefer to in the script are declared as so in the linked html document:
<button id="button">button</button> <br>
<label>Input Box:</label>
<input type="text" name="" placeholder="enter text" id="box"> <br>
As always, grateful for any help offered.