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

207
Views
Using javascript to detect the domains of other tabs?

Is there any way to detect what other domains a user has open with Javascript?

I'm not looking to modify anything in those tabs or have any access to the content from them. I also don't need to know the exact URL, just the domain name each tab is accessing.

I've seen questions here about accessing other tabs via Javascript, but most are wanting to access or modify the data from those tabs - which isn't what I'm wanting to do.

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

0

For privacy reasons, you could only do that in a browser extension, and only if the extension has been given the tabs permission.

See here for more information about the chrome.tabs API.

async function getInactiveTabs() {
    return await chrome.tabs.query({ active: false, currentWindow: true });
}
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!