Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailto link in chrome opens new tab

Hi I have a mailto link on my page, which works fine in other broswers. In chrome, it opens a new tab with the mailto link as the URL. Is there any way to suppress the behavior from the web developer's end?

From what I've read, it seems like this is a function of chrome's settings, but I wanted to know if anyone had a work around.

EDIT: site is located here nickstestserver.com/phi-rhos-near-you It is a drupal 7 site. Here is the relevant html.

<td class="table-logo" >
<a href="mailto:[email protected]" target="_blank"><img src="/sites/default/files/email_logo.png"></img></a>          
</td>
like image 724
nizz0k Avatar asked Dec 22 '15 10:12

nizz0k


People also ask

Why does Chrome open when I click on an email link?

When you click a hyperlink in an email message, your computer automatically attempts to open that link in a Web browser. If you have more than one Web browser installed on your business computer, the link opens in the program that is designated as the default browser.

Do mailto links work in Chrome?

If you want Chrome and Gmail to open mailto links for you by default, make sure Google Chrome is picked as the default client on either OS. In Firefox, you can also specify which client should handle mailto links. Click on the menu button -> Preferences.

How do I keep a link from opening in a new tab?

Method 1: Ctrl+Click The first method requires a keyboard and a mouse or trackpad. Simply press and hold the Ctrl key (Cmd on a Mac) and then click the link in your browser. The link will open in a new tab in the background.

How do I open a mailto link in Chrome?

On the right side of the URL's address bar, click on the icon depicting two intertwined diamonds, which show the handler menu. In the pop-up menu, select the option that reads, "Allow mail.google.com to open all links." From that point forward, all emails open in the browser of your choice.


1 Answers

So, removing the "target =_blank" from the URL stopped the behavior.

like image 155
nizz0k Avatar answered Nov 16 '22 01:11

nizz0k