mailto链接不能在框架内工作(通过https) [英] mailto link not working within a frame chrome (over https)
本文介绍了mailto链接不能在框架内工作(通过https)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在页面上有一个mailto链接。它可以按照预期在页面被加载时运行。
I have a mailto link on a page. It works as expected when the page is loaded by itself.
然而,当页面在Chrome中通过框架集加载时,没有任何反应。随着开发人员工具加载错误[阻止] https://mysite.com中的页面从mailto中运行不安全的内容:...
显示。
However when the page is loaded via a frameset in Chrome nothing happens. With the developer tools loaded the error "[blocked] The page at https://mysite.com ran insecure content from mailto:..."
is displayed.
我该如何修复/解决此问题?
How can I fix/workaround this?
推荐答案
我也有这个问题最近与一个iframe。
I also had this issue recently with an iframe. Using the top frame worked and should be compatible with all major browsers.
window.top.location = 'mailto:...';
这篇关于mailto链接不能在框架内工作(通过https)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文