简体   繁体   中英

mailto links are not opening in a new tab for firefox

mailto links are not opening in a new tab for 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? 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. It won't open a website for you.

According to: 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

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. Read this question:

How to open mailto links in new tab for users that have gmail as the default mail handler?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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