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

116
Views
Method check close status of tab Error When check with link Google search
var link1="https://www.google.com/search?q=marketing";
//var link2="https://stackoverflow.com/";
var tab=window.open(link1,"_blank");
setInterval(function(){checkTabsClosed()},3000);
function checkTabsClosed()
{
if (tab.closed)
    console.log("close");
else 
    console.log("open");
}

When I user link2, it is ok. But I user link1, it is not ok. Please help me code to check tab in this case link1.

about 4 years ago · Santiago Gelvez
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!