Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!