如何在没有引用信息的情况下在jQuery中打开链接 [英] How to open a link in jQuery without the referral information
问题描述
我需要从jQuery中打开一个链接,但我需要避免发送推荐信息.简而言之,我需要模拟 rel ="noreferrer"
I need to open a link from within jQuery but i need to avoid sending the referral information. In shorter words, i need to simulate rel="noreferrer"
可行吗?
推荐答案
我认为那里的每个浏览器都会自动将此信息添加到所有请求中,并且无法使用JavaScript直接对其进行修改.
I think every browser out there automatically tacks this information onto all requests, and there's no way to directly modify it with JavaScript.
在浏览网络之后,您确实有几个选择:
After scouring the web, you do have a couple of options though:
- 从Flash应用程序中启动链接
- 从Java小程序中启动链接
- 通过引荐来源的回避/欺骗服务运行您的URL
所有选项都很丑陋,出于可用性考虑,我不推荐它们.我基于旧的Google解答问题,但是我认为答案是正确的.
All options are ugly and I wouldn't recommend them for usability reasons. I'm basing this off of an old Google Answers question, but I think the answers stand.
这篇关于如何在没有引用信息的情况下在jQuery中打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!