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

234
Vistas
Script inside window opened by window.open() does not work

Hi I was trying to open a window where in i can do a process inside the opened windows using ajax. but my scripts doesn't work at all.

Here's my script so far on my main window

$('.tracker-window').on("click", function() {
      var newWindow  = window.open("/etrcontroller", "_blank", "toolbar=yes,top=500,left=900,width=400,height=400");
    });

And my code in my opened window

<script>

$(function () {  alert();   });

</script>

when I opened the window using the first script it opens up but it does not alert.

Can I ask for some help.

Thanks.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

first make sure you added jquery

Try your code inside $( document ).ready()

for example

$( document ).ready(function() {
    $('.tracker-window').on("click", function() {
      var newWindow  = window.open("/etrcontroller", "_blank", "toolbar=yes,top=500,left=900,width=400,height=400");
    });
});

and

$( document ).ready(function() {
    alert('hello world');
});
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