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

200
Vistas
Delete <script> after function call

I have a php website that is generating heck ton of <script> somefunction(...) </script> The issue is that I don't really enjoy website with all those elements. Is there a way to delete element after the function is called?

What I mean is that I would like it to do something like this:

<script>
   somefunction();
   delete_script_element();
</script>

and that delete_script_element() is able to get the element it called in, and then removes it, I guess simply by:

function delete_script_element() {
   document."GetParentElement".remove();
}

I potentially can also put the code in each , but I still don't know how to target the parent element.

Any help appreciated ^^

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