Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6198703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:03:46+00:00 2026-05-24T04:03:46+00:00

I am building chrome extension i need to detect the current loading tab id’s

  • 0

I am building chrome extension i need to detect the current loading tab id’s from the current tab (which is not loading but selected tab).
I tried events like onUpdated and onSelectionChanged these are giving correct results but if i use this things it will trigger for all the browser tabs.
I dont want like that(if use these events i need to change lot of code) ,
So I want current loading tab id (which is not current tab) using chrome.tab methods

Please help me…

Venkat

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:03:47+00:00Added an answer on May 24, 2026 at 4:03 am

    Since it was not stated how often (or indeed when) this detection will be required the following should work whenever it’s called but will not stay up-to-date by itself (e.g. once tabs have finished loading they may still exist in loadingTabIds);

    // Will store loading tab identifiers
    var loadingTabIds = [];
    // Retrieve selected tab
    chrome.tabs.getSelected(function (selectedTab) {
        // Retrieves all tabs
        chrome.tabs.getAllInWindow(function (tabs) {
            for (var i = 0; i < tabs.length; i++) {
                // Excludes selected and loaded tabs
                if (tabs[i].id !== selectedTab.id && tabs[id].status === 'loading') {
                    loadingTabIds.push(tabs[i].id);
                }
            }
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building Chrome extension which at some point should determine current page language.
I am building a chrome extension which will only be available for people within
I'm currently building a chrome extension that pulls data from a Drupal 6 website,
Okay so I am building an application (for Chrome (*not extension)) and have a
I am building a firefox extension and need to insert some elements and css
I'm building this Google Chrome extension and I find it a nuisance to have
I'm currently building a site, which looks very well in Safari, but many elements
I am in the process of building a Chrome extension, and for the whole
So im building a chrome extension and I have placed an audio flash player
I am new to firefox extension development. I am building an extension which needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.