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>
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.
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.
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.
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.
So, removing the "target =_blank" from the URL stopped the behavior.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With