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

143
Views
Which situations the window.opener.closed property is necessary

Tried to figure out, what's the case to use the window.opener.closed flag? Looks like if the opener window is closed, the window.opener variable is set to null, so we can't access the .closed property anyway. Is there any situation when the opener window is actually closed, but the window.opener is still available so we can check the .closed property?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

So first of all, the behaviour of the closed property is heavily browser dependent. In all modern browser (Firefox, Chrome, Edge) the logic is as you've described - upon the opener Window being closed window.opener is nullified and the closed property is no longer accessible. This is however not the case for IE, where you can access the property just fine.

Secondly, the behaviour you've described happens only if you close the window by the mouse event (e.g. hovering over the 'X' icon of the browser tab and clicking it). If you close the opener Window programmatically (so by using the close() function), you'll see that the nullification process does not occur.

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!