简体   繁体   English

mailto链接没有在firefox的新选项卡中打开

[英]mailto links are not opening in a new tab for firefox

mailto links are not opening in a new tab for firefox. mailto链接没有在firefox的新选项卡中打开。 It is working perfect for all other browsers, but unfortunately I couldn't able to open in a tab in firefox, so that my application is get redirected to mail clients like google/yahoo etc. Is there any work-around for this issue? 它适用于所有其他浏览器,但遗憾的是我无法在firefox的选项卡中打开,因此我的应用程序被重定向到谷歌/雅虎等邮件客户端。这个问题是否有任何解决方法? I have tried the following code: 我试过以下代码:

<a target="_blank" href="mailto:?subject=subjectText&body= bodyText">email</a>

Your mailto: link will open the outlook application or the thunderbird application or any other mail agent you use. 您的mailto:链接将打开Outlook应用程序或thunderbird应用程序或您使用的任何其他邮件代理。 It won't open a website for you. 它不会为您打开一个网站。

According to: http://en.wikipedia.org/wiki/Mailto 根据: http//en.wikipedia.org/wiki/Mailto

Though its use is not strictly defined, URLs of this form are intended to be used to open the new message window of the user's email client when the URL is activated 虽然未严格定义其使用,但此表单的URL旨在用于在激活URL时打开用户电子邮件客户端的新消息窗口

and

The software mechanism activated by the link requires that a default email client be established on the computer 由链接激活的软件机制要求在计算机上建立默认电子邮件客户端

There is some information which seems to allow gmail as default agent in chrome though. 有一些信息似乎允许gmail作为chrome中的默认代理。 Read this question: 阅读这个问题:

How to open mailto links in new tab for users that have gmail as the default mail handler? 对于将gmail作为默认邮件处理程序的用户,如何在新选项卡中打开mailto链接?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM