Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda