用户点击电子邮件中的链接,它打开电子邮件客户端,如何关闭窗口/选项卡? [英] User clicks link in email, it opens email client, how to close window/tab?

查看:357
本文介绍了用户点击电子邮件中的链接,它打开电子邮件客户端,如何关闭窗口/选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户点击HTML电子邮件中的链接,然后转到仅打开邮件客户端的页面。

  window.location.href ='mailto:...'; 

我不希望此窗口/标签保持打开状态,该怎么关闭? p>

window.close()因为没有使用window.open()

是否可能?

解决方案

浏览器不控制邮件客户端,期。它启动一个APPLICATION而不是一个窗口。


A user clicks a link in their HTML email, it then goes to a page that simply opens up their email client.

 window.location.href = 'mailto:...';

I don't want this window/tab to stay open, how can I close it?

window.close() doesn't work since it wasn't opened using window.open()

is it possible?

解决方案

The browser does not control the mail client, period. It launches an APPLICATION, not a window.

这篇关于用户点击电子邮件中的链接,它打开电子邮件客户端,如何关闭窗口/选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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