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

271
Vistas
remove ahref tag served from external java script

I have java script widged which also serves advertisement logo and link. I'm trying to remove the link. Tried the following script code:

<script>
const element = document.querySelector('#apps-google-reviews-1db34d2f-5a02-5eb0-a222-cec57773ac19 > div > a');
element.remove();
</script>

This is working in the browser's console but when I add it as a script in the HTML there is the following error in the console:

Uncaught TypeError: Cannot read properties of null (reading 'remove')

Basicaly the selector didn't catch the element.

about 4 years ago · Santiago Trujillo
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