码迷,mamicode.com
首页 > Web开发 > 详细

[HTML5] a tag, rel="noopener"

时间:2018-03-07 10:30:49      阅读:293      评论:0      收藏:0      [点我收藏+]

标签:about   opener   oop   ase   other   分享   image   img   link   

It is a good pratice to add ref="noopener"

<a href="/some/domain" target="_blank" rel="noopener" />

 

Because when the new page is opened, in the new page can redriect parent page to another url, which contains security risk.

技术分享图片

 

More about this, please check link.

[HTML5] a tag, rel="noopener"

标签:about   opener   oop   ase   other   分享   image   img   link   

原文地址:https://www.cnblogs.com/Answer1215/p/8520236.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!