I'm trying to attach my JavaScript file to perform DOM manipulation on a wikipedia page I've downloaded as HTML.
I've attached the following code to the HTML file in multiple areas but I'm still receiving the error "ReferenceError: document is not defined"
The code I used to attach my .JS file to the .HTML wiki file is: <script src="manipulation.js"></script>.
Where should I place this code to start manipulating the DOM structure of the Wikipedia HTML Page?
This is the HTML page I'm trying to manipulate: https://en.wikipedia.org/wiki/Programming_language
Thank you.