怎样去掉最原始的右击快捷菜单,在线等! asp.net页面在浏览器查看后,右击会出现原始的复制、粘贴等快捷菜单。我想要去掉它,怎么办?请高手指点! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if ( event.button == 0) { //屏蔽 鼠标右键 return false; } function KeyDown(e) { if ( event.button == 0) { //屏蔽 鼠标右键 return false; } } document.oncontextmenu = KeyDown; document.onkeydown = function() { KeyDown() }; function block(oEvent){ if(window.event) oEvent=window.event; if(oEvent.button==2) alert("鼠标右键不可用"); } 加上function KeyDown(e) { if ( event.button == 0) { //屏蔽 鼠标右键 return false; } } document.oncontextmenu = KeyDown; document.onkeydown = function() { KeyDown() };后别的地方不出现了,可是在加载的xheditor编辑器里面仍会出现快捷方式,这是怎么回事? if ( event.button == 0) { return false;} 项目在用的 给LZ/* * 説明:Client危険な操作を禁止する */function forbidUserDo(){ //RightMouseを禁止 $(document).bind("contextmenu",function(e){ return false; }); $(document).bind("ondragstart",function(e){ return false; }); $(document).bind("onselectstart",function(e){ return false; }); $(document).bind("onselect",function(e){ document.selection.empty(); return false; }); $(document).bind("oncopy",function(e){ document.selection.empty(); }); $(document).bind("onbeforecopy",function(e){ return false; }); $(document).bind("onmouseup",function(e){ document.selection.empty(); }); window.moveTo(0,0); window.resizeTo(screen.width,screen.height) //ボタン「back」を禁止するwindow.history.forward(1); }forbidUserDo(); 求助一个小问题 ! 正则截取的问题 栏目列表实现 请教HTML页面在Visual Studio 2005中的问题 另类Directory Listing Denied 在自定义控件的Render方法给ViewState变量赋值,回发时这个变量怎么变空了 关于软件授权,版本控制的问题,用哪种方法最好. SQL高手的问题? 关于 SQL UPDATE 的难题~ 怎么能测试一个有共享目录的客户端是否开机(能过其ip). 怎样在一个查询生成的临时表中添加一个主键呢 vs2010写的网站在windows server 2003 上面发布问题?
return false;
}
function KeyDown(e) {
if ( event.button == 0) { //屏蔽 鼠标右键
return false;
}
}
document.oncontextmenu = KeyDown;
document.onkeydown = function() { KeyDown() };
if(window.event)
oEvent=window.event;
if(oEvent.button==2)
alert("鼠标右键不可用");
}
if ( event.button == 0) { //屏蔽 鼠标右键
return false;
}
}
document.oncontextmenu = KeyDown;
document.onkeydown = function() { KeyDown() };
后别的地方不出现了,可是在加载的xheditor编辑器里面仍会出现快捷方式,这是怎么回事?
{
return false;
}
/*
* 説明:Client危険な操作を禁止する
*/
function forbidUserDo()
{
//RightMouseを禁止
$(document).bind("contextmenu",function(e){
return false;
}); $(document).bind("ondragstart",function(e){
return false;
});
$(document).bind("onselectstart",function(e){
return false;
});
$(document).bind("onselect",function(e){
document.selection.empty();
return false;
});
$(document).bind("oncopy",function(e){
document.selection.empty();
});
$(document).bind("onbeforecopy",function(e){
return false;
});
$(document).bind("onmouseup",function(e){
document.selection.empty();
});
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height)
//ボタン「back」を禁止する
window.history.forward(1);
}
forbidUserDo();