当前位置:网站首页>Oncopy and onpaste
Oncopy and onpaste
2022-07-29 10:22:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack , I wish every programmer can learn more languages .
stay Javascript in , There are corresponding events that can listen to copy and paste , That's it oncopy and onpaste.
oncopy:
- demo:
<body oncopy="alert(' Can't copy ');return false;">
Can you copy me ?
</body>- Use scenarios :
- The page content on many sites does not agree to be copied , This can prevent users or programs from maliciously grabbing page data . Once starting point when reading novels , Just don't agree to copy the content , Now it's harder , The left button selection content and the right button menu are also blocked .
onpaste:
- demo
<input type="text" nane="cardNum" onpaste="return false;" />- Use scenarios :
- When transferring funds through online banking , Enter the opposite card number , You need to input twice , Usually, the input box entered for the second time does not agree to paste , This ensures the accuracy of the card number to a certain extent .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/118989.html Link to the original text :https://javaforall.cn
边栏推荐
- 跟着李老师学线代——矩阵(持续更新)
- 待人宽容大度
- Shell笔记(超级完整)
- 跟着田老师学实用英语语法(持续更新)
- Correct posture and landing practice of R & D efficiency measurement (speech ppt sharing version)
- "Focus on machines": Zhu Songchun's team built a two-way value alignment system between people and robots to solve major challenges in the field of human-computer cooperation
- After eating Alibaba's core notes of highly concurrent programming, the backhand rose 5K
- Is there any charge for PDF processing? impossible
- 这是一份不完整的数据竞赛年鉴!
- [semantic segmentation] 2021-pvt iccv
猜你喜欢

12th generation core processor +2.8k OLED ASUS good screen, lingyao 142022 shadow cyan glaze business thin book

2018-UperNet ECCV

函数——(C游记)

HTB-AdmirerToo

汉源高科千兆2光6电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机

Intel joins hands with datawhale to launch learning projects!

静态资源映射
![[FPGA tutorial case 18] develop low delay open root calculation through ROM](/img/c3/02ce62fafb662d6b13aedde79e21fb.png)
[FPGA tutorial case 18] develop low delay open root calculation through ROM

The latest translated official pytorch easy introduction tutorial (pytorch version 1.0)
![[semantic segmentation] 2021-pvt iccv](/img/43/3756c0dbc30fa2871dc8cae5be9bce.png)
[semantic segmentation] 2021-pvt iccv
随机推荐
Examples of specific usage of diagnostic instructions in s7-1200 and s7-1500 (led+devicestates+modulestates)
Second handshake?? Three waves??
remap_ Use of table in impdp
“为机器立心”:朱松纯团队搭建人与机器人的价值双向对齐系统,解决人机协作领域的重大挑战
二次握手??三次挥手??
[semantic segmentation] 2021-pvt iccv
Orbslam2 installation test and summary of various problems
不堆概念、换个角度聊多线程并发编程
My problem solving record 1: the @component annotation is used on the class. If you want to use the methods in this class, you can't directly new, but should use @autowired for injection, otherwise an
高效能7个习惯学习笔记
皕杰报表之文本附件属件
Be tolerant and generous
Uniswap entered the NFT trading market and opensea took the lead
Google Earth engine (GEE) -- calculate the location of the center point, the external boundary, the external polygon, fuse and simplify the boundary and return it to the vector set
Docker安装Redis、配置及远程连接
【日志框架】
ModuleNotFoundError: No module named ‘pywt‘解决方法
2018-UperNet ECCV
Method of cocos2d-x sprite moving
shell编程之sed,正则表达式