当前位置:网站首页>Always use "noopener" or "noreferrer" for links that open in a new tab
Always use "noopener" or "noreferrer" for links that open in a new tab
2022-08-01 23:07:00 【Ziwei front end】
`target="_blank"` attribute.However, if you don't know them, it can cause some problems.`window.opener` object of the `window` open page through the object.Suppose the new tab executes the following code:window.opener.location = 'http://fake.website.here';`rel="noopener"` to fix the problem.`rel="noreferrer"` attribute.Not only does it fix an issue where `noopener` does exist, but it also prevents `Referer` headers from being sent to new tabs.`noopener`.However, it is still recommended to add `rel="noopener"` or `rel="noreferrer"` to avoid security and performance issues in older browsers.边栏推荐
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
- 加载字体时避免隐藏文本
- 联邦学习入门
- 别看了,这就是你的题呀
- 避免使用 <b>、<i>、<s> 和 <u> 标签
- SRv6 L3VPN的工作原理
- 系统可用性:SRE口中的3个9,4个9...到底是个什么东西?
- Chapter 12 End-User Task As Shell Scripts
- PAM Palindromic Automata
- Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you
猜你喜欢

Deep Learning Course2 Week 2 Optimization Algorithms Exercises

JS prototype hasOwnProperty in Add method Prototype end point Inherit Override parent class method

程序员如何优雅地解决线上问题?

分享10套开源免费的高品质源码,免费源码下载平台

xctf攻防世界 Web高手进阶区 web2

【参营经历贴】2022网安夏令营

编曲软件FL studio20.8中文版功能和作用

xctf攻防世界 Web高手进阶区 webshell

小程序毕设作品之微信体育馆预约小程序毕业设计成品(3)后台功能

还在纠结报表工具的选型么?来看看这个
随机推荐
(Translation) How the contrasting color of the button guides the user's actions
Interpretation of the paper (GSAT) "Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism"
xss相关知识点以及从 XSS Payload 学习浏览器解码
Jmeter是什么
【SeaTunnel】从一个数据集成组件演化成企业级的服务
使用Jenkins做持续集成,这个知识点必须要掌握
SQL29 Calculate the average next day retention rate of users
Go 微服务开发框架DMicro的设计思路
Chapter 12 End-User Task As Shell Scripts
What is CICD excuse me
1391D. 505 状压dp
E - Integer Sequence Fair
Prufer sequence
CF1703G Good Key, Bad Key
From 0 to 100: Notes on the Development of Enrollment Registration Mini Programs
Deep learning Course2 first week Practical aspects of Deep Learning exercises
Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D Solution
简单3D渲染器的制作
Error creating bean with name ‘dataSource‘:Unsatisfied dependency expressed through field ‘basicPro
bat 之 特殊字符&转义