开发者

Using .click() with rel=noreferrer

开发者 https://www.devze.com 2022-12-23 07:18 出处:网络
i have a link with an开发者_开发百科 ID with the rel=noreferrer property (in case you dont know, this means that the user will go to the href value, and the destinatary site won\'t know that they came

i have a link with an开发者_开发百科 ID with the rel=noreferrer property (in case you dont know, this means that the user will go to the href value, and the destinatary site won't know that they came from my site).

<a href="http://google.com" id="mylink" rel="noreferrer">click here</a>

If i use this jquery command, will the "rel" property still work?

$('#mylink').click();


  1. rel="noreferrer" isn't respected by most browsers
  2. Calling $('#mylink').click(); won't do anything (not open the link). This would only trigger any appended javascript event handlers but not trigger the same action as a real user click
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号