Middle click doesn't always open links in Chrome's new tab


Amireguez

I use the middle mouse button to open links in new tabs and close tabs.

But sometimes, middle-clicking opens the link in the current tab instead of a new tab. It's not random - I've noticed that it usually happens when a popup link is clicked, such as a thumbnail or a link that opens an image in a popup (like here) .

I checked this issue and it doesn't exist in Firefox (14.0.1).
My Google Chrome version is 22.0.1229.94.

Why is this so?
Is it possible to force middle click to always open links/images in new tabs?

Daniel Calliess

This happens because of the so called lightbox script attached to the link . So if you have javascript execution activated (which is the default in popular browsers), lightbox scripts are attached to images and open them in a neat in-page viewer. The script seems to have been programmed to react to the left and middle mouse buttons (which is definitely not good style).

Here are a few things you can try:

  • Disable javascript completely or disable individual pages (doesn't sound like a good solution these days).
  • Use the right mouse button and select Open Link in New Tab .
  • Install a browser extension such as Link Fixer or Fix Chrome middle-click behavior (though I haven't tested it).

Related


Middle click doesn't always open links in Chrome's new tab

Amireguez I use the middle mouse button to open links in new tabs and close tabs. But sometimes, middle-clicking opens the link in the current tab instead of a new tab. It's not random - I've noticed that it usually happens when a popup link is clicked, such a

Chrome extension: how to open links in new tab?

Tuyen Pham: In my Stackoverflow folder, there are stackoverflow.ico2 bellow files. When importing it into Chrome, it shows the icon in the address bar, but when I click it, Chrome doesn't open any new tabs. What am I doing wrong? manifest.json { "name": "Sta

Chrome extension: how to open links in new tab?

Tuyen Pham: In my Stackoverflow folder, there are stackoverflow.ico2 bellow files. When I import it into Chrome, it shows the icon in the address bar, but when I click it, Chrome doesn't open any new tabs. What am I doing wrong? manifest.json { "name": "Stac

Chrome app, open links in new tab

username I'm building a chrome app that will simply open a link like " http://www.cnn.com/ " in a new tab in chrome . I have the following code in my manifest.json { "manifest_version": 2, "name": "CNN", "version": "2.1", "permissions": ["webview", "po

Chrome extension: how to open links in new tab?

Tuyen Pham: In my Stackoverflow folder, there are stackoverflow.ico2 bellow files. When importing it into Chrome, it shows the icon in the address bar, but when I click it, Chrome doesn't open any new tabs. What am I doing wrong? manifest.json { "name": "Sta

Selenium doesn't follow click to open new tab

Anonymous 0441 For a long time I had a problem using selenium to find the button I was looking for on the page. After a week, I had a "nice" idea to check the url where selenium was searching for the button. Fake me, this is the wrong url. So the problem is, s

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done, my links stop responding to left clicks. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the browse

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done my links stop responding to left clicks too. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the bro

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done my links stop responding to left clicks too. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the bro

jQuery/JavaScript - Allow CTRL+click to open links in new tab

Nsilva Is there a way in jQuery or JavaScript to enable the user to CTRL+click a link to open the link in a new tab (like <a href="">example</a>element) ? Here is an example of what I'm talking about:- jQuery('#some-link').bind('click', function() { window.

jQuery/JavaScript - Allow CTRL+click to open links in new tab

Nsilva Is there a way in jQuery or JavaScript to enable the user to CTRL+click a link to open the link in a new tab (like <a href="">example</a>element) ? Here is an example of what I'm talking about:- jQuery('#some-link').bind('click', function() { window.

jQuery/JavaScript - Allow CTRL+click to open links in new tab

Nsilva Is there a way in jQuery or JavaScript to enable the user to CTRL+click a link to open the link in a new tab (like <a href="">example</a>element) ? Here is an example of what I'm talking about:- jQuery('#some-link').bind('click', function() { window.

jQuery/JavaScript - Allow CTRL+click to open links in new tab

Nsilva Is there a way in jQuery or JavaScript to enable the user to CTRL+click a link to open the link in a new tab (like <a href="">example</a>element) ? Here is an example of what I'm talking about:- jQuery('#some-link').bind('click', function() { window.

How to open links in new tab (chrome) using Selenium WebDriver?

nlogn: System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.ge

How to open links in new tab (chrome) using Selenium WebDriver?

nlogn: System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.ge

How to open links in new tab (chrome) using Selenium WebDriver?

nlogn: System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.ge

How to open links in new tab (chrome) using Selenium WebDriver?

login System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.get

How to open links in new tab (chrome) using Selenium WebDriver?

nlogn: System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.ge

Selenium C# Open "New" tab CTRL+T doesn't work with CHROME

crush static void Main() { IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl("http://google.com"); IWebElement body = driver.FindElement(By.TagName("body")); body.SendKeys(Keys.Control + "t"); } This is the code I'm trying to

Selenium C# Open "New" tab CTRL+T doesn't work with CHROME

crush static void Main() { IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl("http://google.com"); IWebElement body = driver.FindElement(By.TagName("body")); body.SendKeys(Keys.Control + "t"); } This is the code I'm trying to

Selenium C# Open "New" tab CTRL+T doesn't work with CHROME

crush static void Main() { IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl("http://google.com"); IWebElement body = driver.FindElement(By.TagName("body")); body.SendKeys(Keys.Control + "t"); } This is the code I'm trying to

Selenium C# Open "New" tab CTRL+T doesn't work with CHROME

crush static void Main() { IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl("http://google.com"); IWebElement body = driver.FindElement(By.TagName("body")); body.SendKeys(Keys.Control + "t"); } This is the code I'm trying to

Selenium C# Open "New" tab CTRL+T doesn't work with CHROME

crush static void Main() { IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl("http://google.com"); IWebElement body = driver.FindElement(By.TagName("body")); body.SendKeys(Keys.Control + "t"); } This is the code I'm trying to

Selenium C# Open "New" tab CTRL+T doesn't work with CHROME

crush static void Main() { IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl("http://google.com"); IWebElement body = driver.FindElement(By.TagName("body")); body.SendKeys(Keys.Control + "t"); } This is the code I'm trying to