简体   繁体   English

mailto:links - 从js返回代码?

[英]mailto: links — return code from js?

Is it possible somehow to find out if an external email client has actually been opened when a user clicks on a mailto link on a web page? 当用户单击网页上的mailto链接时,是否有可能找出外部电子邮件客户端是否已真正打开? I need to know that in my javascript code. 我需要在我的JavaScript代码中知道这一点。

The reason I need to know this, is because users might not have any email clients set up on their machines, and they would wonder why doesn't anything happen when they press on the "Send an Email" button. 我需要知道这一点的原因是因为用户可能没有在他们的机器上设置任何电子邮件客户端,他们会想知道为什么当他们按下“发送电子邮件”按钮时没有任何事情发生。

Whatever happens if a mailto link is clicked is up to the clients browser. 如果点击mailto链接会发生什么,取决于客户端浏览器。 Maybe there is some hack to archive what you want, but no standard compliment solution. 也许有一些黑客可以归档你想要的东西,但没有标准的赞美解决方案。

JavaScript has no access to anything outside the browser. JavaScript无法访问浏览器之外的任何内容。 Because of this, there is no way to check the results of clicking a mailto link. 因此,无法检查单击mailto链接的结果。

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

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