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

  • SEARCH
  • Home
  • 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 7873299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:28:16+00:00 2026-06-03T02:28:16+00:00

I am testing my Chrome extension by using the following codes: chrome.tabs.create({url: login_popup.html}, function(tab){

  • 0

I am testing my Chrome extension by using the following codes:

chrome.tabs.create({url: "login_popup.html"}, function(tab){
    chrome.extension.sendRequest({oid: tab.openerTabId});
});

However, a new tab was created only when Chrome started, but no tabs were created when I opened open a new page. Shouldn’t the chrome.tabs.create be executed whenever a new page is loaded?

The manifest.json is:

{
   "name": "minus_test",
   "version": "1.0",
   "background_page": "minus_test.html",
   "permissions": [ "*://*/", "tabs" ]
}

Thanks!

  • 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-06-03T02:28:17+00:00Added an answer on June 3, 2026 at 2:28 am

    No. background_page gets executed once when Chrome starts at which point it creates a new tab. If you want to create a new tab ever time a new window is opened you need to use the chrome.windows.onCreated listener.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to trigger the click, to which following code is listening: chrome.browserAction.onClicked.addListener(function(tab) {});
i am using FF as the main testing platform and Chrome (for Mac) as
I am newbie as far as developing chrome extension is concerned. I am testing
I'm testing Chrome 15.0.874.106m on a dual-core 2.8 GHz Pentium Windows 7 system with
Okay, I'm building a page in a CF environment. I'm testing in chrome/FF &
I put a breakpoint in javascript and am testing some code with Chrome. I
I testing the deployment of my project using clickonce. Boy was I in for
I'm looking for a browser extension (Firefox, Chrome) allowing to replace a Javascript file
I'm curious to know who is testing against Chrome. I am mainly because it
I'm using Selenium RC with chrome-mode for Firefox to automate test cases for a

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.