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

286
Views
How to check if user has just enabled the blocked popup window?

I need to exchange messages with the popup, opened by code, via MessageChannel. I open the popup window with window.open() and by default window is blocked, so the result is null. I need to check when user enables the window. Popup window is on another domain. I tried something like this:

const popup = window.open( popupUrl, "Popup", popupWindowFeatures )
const interval = setInterval(() => {
  if (popup) {
    console.log('Popup is opened')
  }
});

But popup is still null, so i cannot post a message to it.

How can I resolve the problem, without manual opening by click or page refresh?

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