网页禁止右键和复制

13-01-16 17:00 35187 0 技术
<SCRIPT LANGUAGE=javascript>
function click() {
alert('Forbidden') }
function mdown() {
if (event.button==2) {alert('Forbidden') }}
function CtrlKeyDown(){
if (event.ctrlKey) {alert('Forbidden') }}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;
document.onmousedown=mdown;
</SCRIPT>
请登录后发表评论 点击登录

文章归档

文章日历

2024 年 05 月
29 30 31 01 02 03 04
05 06 07 08 09 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
27 28 29 30 31 01 02

文章标签

最新评论

友情链接