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

167
Vistas
How to add third party url script and link in the head tag using js?
  1. URL with script and other with stylesheet to be added in head tag using javascript?
  2. How can I add third party script tag in head using javascript and display the code present below after few seconds when page loads completely?

Eg:

<script>
var RequestURL = '';
function onWindowClosed(obj) {
  console.log("callback event : " + JSON.stringify(obj));
  if(obj.event_name === event_name) {
    console.log("successfully returned: " + obj.message);
  } else {
    console.log("unknown-event");
  }
}
var userDetails = JSON.stringify({
  "appId": ",  
  "customerId": "", 
});       
</script>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can append elements like scripts or stylesheets using vanilla JavaScript

var script = document.createElement("script");
script.setAttribute("src", "https://script.example.com/script.js") // Replace with your script link
var head = document.querySelector("head")
head.appendChild(script)

about 4 years ago · Juan Pablo Isaza Denunciar
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