Google Chrome的mailto状态已取消 [英] Google Chrome mailto Status canceled

查看:682
本文介绍了Google Chrome的mailto状态已取消的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < a href =mailto:& subject = somesubjectclass =anchoroffset nounderline shareusingemailtitle =使用电子邮件分享>< div class =sprite icon-email-grey>< / div>< / a> 

现在,当我在Google Chrome(v36.0.1985.125)中点击此链接时,在网络选项卡下取消。然而,它确实打开我的Outlook与正确的主题。要解决这个问题,我也禁用了所有的Chrome扩展程序,但它对这个问题没有任何影响。



这不是一个交易断路器,但我确实很想知道为什么会发生这种情况,我可以预防它吗?我也在IE(v11),FF(v30.0)和Safari(v5.1.7)中测试了相同的链接,并且我没有注意到任何问题。

我已经通过 Javascript location.href to mailto触发一个GET HTTP,它在Chrome中被取消了的问题,但它没有帮助我。

对此错误的任何深入了解都非常感谢。感谢。

解决方案

这个行为被Chrome浏览器注册为mailto网址作为默认程序。 b

网络窗口中取消的消息属于正常情况,仅表示Chrome不会打开新的浏览器窗口,但仍会启动电子邮件软件。



在Windows 10(以及可能以前的版本)下,您可以设置默认程序。首先通过开始菜单选择'默认程序协议',然后在列表中找到以下条目:


URL:MailTo Protocol > b

并将其更改为您的电子邮件软件。



作为网站管理员,它仍然存在问题,因为你将无法控制网页访问者的计算机上的这种行为。我建议使用带有服务器端脚本的联系表单而不是mailto链接。


I have a very simple hyperlink in my MVC App.

<a href="mailto:&subject=somesubject" class="anchoroffset nounderline shareusingemail" title="Share using Email"><div class="sprite icon-email-gray "></div></a>

Now when I click on this link in Google Chrome (v36.0.1985.125) I always notice Status cancelled under Network tab. However it does open my Outlook with the right subject. To troubleshoot this problem I disabled all the Chrome extensions too but it had no impact on the issue.

This is not a deal breaker but I am surely curious to know why this is happening and can I prevent it? I have also tested same link in IE (v11), FF (v30.0) and Safari (v5.1.7) and I didn't notice any issue there.

I have already gone thru Javascript location.href to mailto triggers a GET HTTP that gets canceled in Chrome question but it didn't help me.

Any insight into this error is much appreciated. Thanks.

解决方案

This behavior is trigerred by Chrome registering itself for mailto URLs as a default program.

The cancelled message in the Network window is normal and only indicates that Chrome won't open a new browser window, but it will still launch your email software.

Under Windows 10 (and probably previous versions) you can set the default program. First select 'default program by protocol' via the Start Menu, then locate the following entry into the list :

URL:MailTo Protocol

and change it to your email software.

As a Webmaster it's still problematic, because you won't be able to control this behavior on the computer of the people visting your web page. I'll recommend to use a contact form with a server side script instead of a mailto link.

这篇关于Google Chrome的mailto状态已取消的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆