# Sites where middle click opens in the same tab in Chromium.  How to fix.

**URL:** <https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040>\
**Category:** Factual Questions\
**Created:** [July 20, 2013, 4:38pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040 "2013-07-20T16:38:39Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [July 20, 2013, 4:38pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/1 "2013-07-20T16:38:39Z")

</div>

Middle clicking on a link with my mouse is supposed to open the link in a new tab. Increasingly, I’m finding sites where the link opens in the same tab, which is not what I want. I then have to click back, then right-click the link and and manually select open in new tab.

This doesn’t happen in Firefox, and it doesn’t happen for all sites. [This page](http://www.bbc.co.uk/news/science-environment-23373821) is a site where this occurs. If I middle click on the _These timings_ link in the sixth paragraph from Chromium, it opens in that same page. This occurs whether I disable JavaScript on that site or not. It doesn’t happen for all links on that page, either. The ones that stay at the [bbc.co.uk](http://bbc.co.uk) site open in new tabs. Only external links open in the same tab.

Here’s that same These timings link. Middle clicking on it from my post opens it in a new tab, so it’s something about the BBC News site, not the link itself.

How are they doing this? More importantly, how can I avoid this behavior? Is there some browser setting I can change?

---

<div class="post-metadata">

**Author:** ![RightCoast](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@RightCoast](https://boards.straightdope.com/u/RightCoast)\
**Post date:** [July 20, 2013, 4:57pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/2 "2013-07-20T16:57:46Z")

</div>

> [@ZenBeam](#):
>
> Middle clicking on a link with my mouse is supposed to open the link in a new tab.

Excellent! I never knew about that.

The wheel on my Microsoft mouse acts as a middle button–I knew that but never had a reason to use it. But I how have a good reason. Thank you!

I sure hope this disease you’ve identified doesn’t start affecting me too now that I have the tool.

---

<div class="post-metadata">

**Author:** ![njtt](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@njtt](https://boards.straightdope.com/u/njtt)\
**Post date:** [July 20, 2013, 6:20pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/3 "2013-07-20T18:20:20Z")

</div>

Well I can confirm that this happens for me in Chrome too, but not Firefox or IE. Even more oddly, the link a little further down that page, to “Pale Blue Dot”, seems to behave normally on middle-click, and neither of those links seems to have any special CSS or JavaScript on them. **Inspect Element** and **View Selection Source** (in Chrome and Firefox respectively) show them as straightforward HTML links with no special parameters. This is very odd. I can’t explain it.

Are there any other examples of links that behave like this that you have discovered?

---

<div class="post-metadata">

**Author:** ![davidm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidm/32/225_2.png) [@davidm](https://boards.straightdope.com/u/davidm)\
**Post date:** [July 20, 2013, 6:23pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/4 "2013-07-20T18:23:28Z")

</div>

That’s strange. That link, “These timings”, is a simple standard A tag with an href attribute using a standard URL. I would blame it on scripting except that you say you’ve disabled that. Have you reloaded the page after disabling the Javascript?

---

<div class="post-metadata">

**Author:** ![Terminus\_Est](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/terminus_est/32/3087_2.png) [@Terminus\_Est](https://boards.straightdope.com/u/Terminus_Est)\
**Post date:** [July 20, 2013, 6:53pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/5 "2013-07-20T18:53:45Z")

</div>

Ctrl-click works as expected as does right-click then choosing “Open in new tab”. It’s only the middle click that has weird behavior.

---

<div class="post-metadata">

**Author:** ![BorgHunter](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@BorgHunter](https://boards.straightdope.com/u/BorgHunter)\
**Post date:** [July 20, 2013, 7:08pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/6 "2013-07-20T19:08:25Z")

</div>

I have identical behavior except for one thing: If I disable JavaScript, the weird behavior goes away and middle clicking the link works normally. Like **davidm** said, did you refresh the page after disabling JavaScript? You should see a little scroll with an X through it at the right of the location bar if JavaScript is disabled.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [July 20, 2013, 8:21pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/7 "2013-07-20T20:21:36Z")

</div>

> [@BorgHunter](#):
>
> I have identical behavior except for one thing: If I disable JavaScript, the weird behavior goes away and middle clicking the link works normally. Like **davidm** said, did you refresh the page after disabling JavaScript? You should see a little scroll with an X through it at the right of the location bar if JavaScript is disabled.

I did reload the page when i was testing, and had the same behavior. I just reloaded without javascript now, however, and the middle click did work correctly. I didn’t know to check for the no javascript icon earlier, so maybe it hadn’t fully reloaded then.

> [@njtt](#):
>
> Well I can confirm that this happens for me in Chrome too, but not Firefox or IE. Even more oddly, the link a little further down that page, to “Pale Blue Dot”, seems to behave normally on middle-click, and neither of those links seems to have any special CSS or JavaScript on them.

The Pale Blue Dot link is within the [bbc.co.uk](http://bbc.co.uk) site. It’s only links to external sites that have that behavior. On that page, anyway. Another site I had this problem on was webmail hosted on [yahoo.com](http://yahoo.com), where the links for each message had the same annoying behavior, again only with Chromium. I’d expect those were on the same site, but I can’t check now, since they “upgraded” their webmail site.

---

<div class="post-metadata">

**Author:** ![njtt](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@njtt](https://boards.straightdope.com/u/njtt)\
**Post date:** [July 20, 2013, 8:46pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/8 "2013-07-20T20:46:00Z")

</div>

So if it is JavaScript, how and why is it doing this, especially considering that they are regular HTML links without any JavaScript calls in the tag. And why is only in Chrome, and only (apparently) on external links?

---

<div class="post-metadata">

**Author:** ![Strinka](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/strinka/32/512_2.png) [@Strinka](https://boards.straightdope.com/u/Strinka)\
**Post date:** [July 21, 2013, 2:15am UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/9 "2013-07-21T02:15:47Z")

</div>

I don’t know a solution to this problem, but there is a slightly easier workaround than this.

> [@ZenBeam](#):
>
> I then have to click back, then right-click the link and and manually select open in new tab.

You can simply middle-click the back button. That will open the last page in a new tab.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [July 21, 2013, 2:38am UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/10 "2013-07-21T02:38:20Z")

</div>

> [@Strinka](#):
>
> I don’t know a solution to this problem, but there is a slightly easier workaround than this.You can simply middle-click the back button. That will open the last page in a new tab.

That’s good to know. Thanks.

I did some more searching, and apparently this problem has been around long enough that there’s actually [an extension](https://chrome.google.com/extensions/detail/ikbkhpkapkmhaoiabhlkmicpeakhhpip) you can install to fix it. :rolleyes: I think I’ll stick with disabling JavaScript.

---

<div class="post-metadata">

**Author:** ![RightCoast](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@RightCoast](https://boards.straightdope.com/u/RightCoast)\
**Post date:** [July 21, 2013, 3:01am UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/11 "2013-07-21T03:01:49Z")

</div>

> [@Strinka](#):
>
> You can simply middle-click the back button. That will open the last page in a new tab.

Cool! Another new thing to help me browse faster.

At the moment I’m using [Firefox](http://www.mozilla.org/en-US/firefox/new/), [Rekonq](http://rekonq.kde.org/), [Chromium](http://www.chromium.org/) and [Opera](http://www.opera.com/) browsers on [Arch Linux](https://www.archlinux.org/). Both of these suggestions work on all of them, except that middle clicking the back button doesn’t work on Opera.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [July 21, 2013, 9:14am UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/12 "2013-07-21T09:14:32Z")

</div>

> [@ZenBeam](#):
>
> That’s good to know. Thanks.
> 
> I did some more searching, and apparently this problem has been around long enough that there’s actually [an extension](https://chrome.google.com/extensions/detail/ikbkhpkapkmhaoiabhlkmicpeakhhpip) you can install to fix it. :rolleyes: I think I’ll stick with disabling JavaScript.

I’d get the extension just in case you encounter this behavior on a site that won’t work without JavaScript. I’ve run into a few. ([Cracked.com](http://Cracked.com) has sections that don’t work. But I had to disable it because the pages are resource hogs with it enabled.)

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [July 21, 2013, 1:08pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/13 "2013-07-21T13:08:47Z")

</div>

> [@BigT](#):
>
> I’d get the extension just in case you encounter this behavior on a site that won’t work without JavaScript.

Maybe if I run in to that. For now, I’ll disable JavaScript on websites that behave like that, that I go to regularly, and use **Strinka** ’s technique otherwise.

I’m also trying out Opera, as an alternative to Chromium. Not sure I’m going to like it, though. It’s kind of a pain to get to regular bookmarks, and the bookmarks toolbar didn’t populate when I saved my Chromuim bookmarks and loaded them in Opera. But maybe I just don’t know what I’m doing.

_This post posted from my Opera browser._

---

<div class="post-metadata">

**Author:** ![davidm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidm/32/225_2.png) [@davidm](https://boards.straightdope.com/u/davidm)\
**Post date:** [July 21, 2013, 5:51pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/14 "2013-07-21T17:51:56Z")

</div>

> [@njtt](#):
>
> So if it is JavaScript, how and why is it doing this, especially considering that they are regular HTML links without any JavaScript calls in the tag. And why is only in Chrome, and only (apparently) on external links?

There don’t have to be calls explicitly in the tag. JavaScript elsewhere on the page can modify DOM elements and, among other things, bind event handlers to them. There may be script that binds a click event handler to those links. Maybe it binds it to all links as a class and then processes internal and external links differently, or maybe the internal and external links are different classes. I haven’t really examined that page that closely to see.

I also see that behavior on that page with Chrome on my computer. Why it would only affect Chrome, I can’t say.

---

<div class="post-metadata">

**Author:** ![chambraigne](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@chambraigne](https://boards.straightdope.com/u/chambraigne)\
**Post date:** [July 21, 2013, 9:45pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/15 "2013-07-21T21:45:32Z")

</div>

What a frustrating and surprisingly complicated bug! I haven’t seen a bug number that low in Chromium’s bug tracker in a long time!

What it apparently comes down to (based on a very quick skim of the relevant bug histories) is that other browsers interpret “onclick” to not apply to middle clicks, whereas WebKit based browsers do.

I just left a comment on the Chromium bug.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [July 21, 2013, 10:54pm UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/16 "2013-07-21T22:54:58Z")

</div>

> [@chambraigne](#):
>
> What a frustrating and surprisingly complicated bug! I haven’t seen a bug number that low in Chromium’s bug tracker in a long time!
> 
> What it apparently comes down to (based on a very quick skim of the relevant bug histories) is that other browsers interpret “onclick” to not apply to middle clicks, whereas WebKit based browsers do.
> 
> I just left a comment on the Chromium bug.

Heh. That was an amusing read, in a perverse sort of way. Thanks for bumping it there. ([Link](https://code.google.com/p/chromium/issues/detail?id=255&can=1&sort=-modified&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified) for others who are interested.)

---

<div class="post-metadata">

**Author:** ![Bremidon](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bremidon](https://boards.straightdope.com/u/Bremidon)\
**Post date:** [July 22, 2013, 7:45am UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/17 "2013-07-22T07:45:11Z")

</div>

Welp, just got another reminder why I read the sdmb. Almost 20 years using browsers, and never knew this trick. I always used the Ctrl - Left MB to do the same thing.

---

<div class="post-metadata">

**Author:** ![Mister\_Sister](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Mister\_Sister](https://boards.straightdope.com/u/Mister_Sister)\
**Post date:** [November 24, 2014, 3:23am UTC](https://boards.straightdope.com/t/sites-where-middle-click-opens-in-the-same-tab-in-chromium-how-to-fix/664040/18 "2014-11-24T03:23:23Z")

</div>

click on the user’s name to the left of his post. Try to middle click to open his profile in a separate tab. Doesn’t work. Annoying, isn’t it?
