首页 > 其他 > 详细

屏蔽右键菜单

时间:2014-11-06 17:39:05      阅读:220      评论:0      收藏:0      [点我收藏+]
document.oncontextmenu = function (event){
	if(window.event){
		event = window.event;
	}try{
		var the = event.srcElement;
		if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
			return false;
		}
		return true;
	}catch (e){
		return false; 
	} 
}

屏蔽右键菜单

原文:http://blog.csdn.net/wenjin1204/article/details/40862005

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!