问题描述
您好,我的页面上有一个mailto链接,在其他浏览器中也可以正常使用.在chrome中,它将打开一个新标签,其中的mailto链接为URL.有什么方法可以抑制Web开发人员的行为?
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?
从我阅读的内容来看,这似乎是chrome设置的功能,但我想知道是否有人可以解决此问题.
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.
站点位于nickstestserver.com/phi-rhos-near-you这是一个drupal 7网站.这是相关的html.
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>
推荐答案
因此,从URL中删除"target = _blank"将停止该行为.
So, removing the "target =_blank" from the URL stopped the behavior.
这篇关于Chrome中的Mailto链接会打开新标签页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!