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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:03:19+00:00 2026-06-01T08:03:19+00:00

and pardon my english I have a specific problem with Chrome browser, just in

  • 0

and pardon my english

I have a specific problem with Chrome browser, just in chrome.

If I use a simple link, like

<a id="a1" href="http://www.stackoverflow.com" target="_blank">Need to simulate user clicking on this link, but no the onclick event</a>

The browser open the url in a new tab, so far, perfect.

My problem comes in the moment I try to do it in a javascript function.

For example, if I try to emulate the event onclick, like

$("#a1").onclick(); // Jquery is welcome

The chrome browser open a new window, and I need a tab.

So, I’m not trying to emulate the click event, just the href, I don’t know how to call it. Or find the way to force in a window.open(“url”, “newwindow”, “params”, t/f );

I’m using asp.net, using an extra form to try to change the action and submit is not and option, it disappears.

For firefox and explorer I use, in a function

PopUpWindow = window.open("url", 'newWindow' + Guid, 'toolbar=0, menubar=0, location=1, status=0, scrollbars=0');

And is working well. I think I don’t need the param, because the window is open as a tab.

My browser have the default settings, and I know that depending on the browser settings, you can open a window or tab by clicking the link (I checked for similar answers). So my intention is to try to emulate the href not the click event.

Or, there are any way to manage the tabs in chrome?,

Thanks in advance

  • 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-01T08:03:20+00:00Added an answer on June 1, 2026 at 8:03 am
    1. I don’t think its possible, it would be against all browser rules to force open a tab.

    2. Tabs are a setting in your browser, not every user wants to use tabs. It’s almost always better to let the user control this kind of behavior instead of forcing this upon them.

    To open a new window (or tab if the user set this in his/her settings) use:

    window.open(
      url,
      '_blank' // new window or tab.
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pardon the simple question, but I am pulling my hair out trying to get
Pardon the vague question, but I've just inherited a project to build a couple
Pardon me for giving you a confusing title on this problem. I'm really confused
First of all, pardon me for my poor english level. I will try to
Pardon for this, i just get this error in console but i can't see
Pardon the newbie question. My data model is really simple (two tables; 200 rows
Beforehand, pardon me for my poor English. Ok so here's a live site I
I have the following code: (please pardon the length of this code). I am
This is my first post here so kindly pardon any mistakes that I have.
I am just starting out with javascript so please pardon me if my question

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.