Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Where to Place External JS File to Perform DOM Manipulation

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!