如何在没有引用信息的情况下在jQuery中打开链接 [英] How to open a link in jQuery without the referral information

查看:91
本文介绍了如何在没有引用信息的情况下在jQuery中打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从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:

  1. 从Flash应用程序中启动链接
  2. 从Java小程序中启动链接
  3. 通过引荐来源的回避/欺骗服务运行您的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屋!

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