禁止鼠标右键的动作

简介: function click() { if (event.button==2||event.button==3) {  alert('禁止鼠标右键'); } document.onmousedown=click // -->   或 function click() { if (event.
<Script Language = "JavaScript">
function click() { if (event.button==2||event.button==3)
{
 alert('禁止鼠标右键');
}
document.onmousedown=click // -->
</Script>


  或

<script language="JavaScript">
function click() { if (event.button==2)
{alert('*^_^*'); } } document.onmousedown=click // -->
</script>
目录
相关文章
|
安全 区块链 数据安全/隐私保护
蚂蚁区块链的优势是什么
蚂蚁区块链的优势是什么
725 2
|
存储 安全 网络安全
云计算与网络安全:云服务、网络安全、信息安全等技术领域的探索
随着互联网技术的飞速发展,云计算已经成为现代企业和个人不可或缺的一部分。然而,云计算的普及也带来了一系列网络安全问题。本文将从云服务、网络安全、信息安全等技术领域出发,探讨云计算与网络安全之间的关系,以及如何应对这些挑战。
|
存储 缓存 运维
基础篇丨链路追踪(Tracing)其实很简单
基础篇丨链路追踪(Tracing)其实很简单
基础篇丨链路追踪(Tracing)其实很简单
|
设计模式 安全 Java
创建型模式 - 单例模式(Singleton Pattern)
创建型模式 - 单例模式(Singleton Pattern)
Poll——map+字符串数组
题目描述 We have N voting papers. The i-th vote (1≤i≤N) has the string Si written on it. Print all strings that are written on the most number of votes, in lexicographical order. Constraints ·1≤N≤2×105 ·Si (1≤i≤N) are strings consisting of lowercase English letters.
152 0
Poll——map+字符串数组
|
JSON JavaScript 前端开发
JSON知识点
JSON知识点
160 0
开发指南—函数—拆分函数—WEEK
本文介绍WEEK函数的使用方式。
|
索引 Python
python列表、字典、元组、集合学习笔记
python列表、字典、元组、集合学习笔记

热门文章

最新文章