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 7693457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:05:35+00:00 2026-05-31T21:05:35+00:00

I am very new (started today) to writing chrome extensions but need to write

  • 0

I am very new (started today) to writing chrome extensions but need to write a ‘fairly simple’ one for tomorrow…

I am really struggling to get my head round it though!

I need to write an extension that opens a new tab or window (whichever is easier!) directed at a predefined url is opened when a certain URL is searched in the current.

An example of this would be if the user typed in http://www.facebook.com I am trying to get the extension to then open a new tab/window with http://www.google.com in.

Any help would be much appreciated!
Thanks
Will

  • 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-31T21:05:36+00:00Added an answer on May 31, 2026 at 9:05 pm

    In your html of the extension you can specify an anchor tag for the action button which opens a new tab like this

    <a href="some url" target="_newtab">content of the anchor</a>
    

    or if you want to do it programmatically you can

    window.open('http://google.com','_newtab');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very new to Android (started yesterday) and so far so good, but one
Very new to FluentNHibernate, but I'm also excited about the area. I've recently started
I am fairly new to using infragistics controls (started yesterday). While they are (very)
Very new to XSL (and XML for that matter), but I need to step
I'm VERY new to jQuery (literally started working with it today), and so I'm
I'm very new to javascript (started messing with it today). I'm trying to change
I'm very new to OpenFeint, actually started integrating it into my game today. I
I'm very new to Android development (just started today), and also very new to
OK, I am very new to Android and C#. Just started today in fact.
Today I was testing my app (wich is a very simple note application) but

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.