想把IE右键菜单里的“刷新“去掉,有什么办法可以做到啊?谢谢啦!!
解决方案 »
- SqlCommand 和SqlParameter
- 谁用过iis7
- 调用事件
- 报社网站的数字报刊技术
- DataGrid中的DropdownList的ListItem如何取到DataGrid的绑定列的值?
- 刚找到xmlhttp发送 xml 例子详解,送给大家~~~
- 水晶报表打印总多打一张空白页
- Sitecore平台
- 那位大哥帮忙一下?????不可访问“myoa.main.PagerButtonClick(object, System.EventArgs)”,因为它受保护级别限制
- 未能加载文件或程序集“FramWorkCore”或它的某一个依赖项,(求大神指点迷津)
- 中午不回家,求~!!!
- 用过Developer Express公司的ASPxGrid控件或InterSoft公司的WebCombo.NET控件的请进来
----------------------------------------------------------------
如果是如此,还真没什么办法,自己写个右键弹出菜单吧!
<head>
<script>
function checkevent(e){
var charCode = (navigator.appName == "Netscpae") ? e.whick:e.keyCode;
if (charCode == 16||charCode == 17||charCode == 122){
window.opener=null;
self.close();
return false;
}
}
</script>
</head>
<body onkeydown=checkevent(event); onselectstart="return false;" ondragstart="return false;" oncontextmenu="self.event.returnValue=false;">
不能选择<br>
不能复制<br>
禁止右键菜单<br>
禁用"Ctrl","Shift"和"F11"
</body>
</html>找了好多事件,好象没有触发刷新的.... http://www.51windows.net/hw/web/pages/page9.htmonselectstart="return false;" 找到后,类似这样写就好了... 事件名="return false";
http://www.chinaaspx.com/comm/dotnetbbs/Showtopic.aspx?Forum_ID=44&Id=137510
,可是当菜单显示的时候会被input、select等挡住啊。
<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
网页屏蔽右键方法一
<script language="JavaScript">window.ClearEvent=function(){event.cancelBubble=false;var sSrcTagName=event.srcElement.tagName.toLowerCase();return (sSrcTagName=="textarea" || sSrcTagName=="input" || sSrcTagName=="select");}window.ClearKey=function(){event.cancelBubble=false;var iKeyCode=event.keyCode;return !(iKeyCode==78 && event.ctrlKey);}with (window.document){oncontextmenu=onselectstart=ondragstart=window.ClearEvent;onkeydown=window.ClearKey;}</script>
<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>网页屏蔽右键方法二
< Script Language=javascript>
function Click(){
alert('版权所有(C)2001 XXX工作室');
window.event.returnValue=false;
}
document.oncontextmenu=Click;
< /Script>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Response.Write("<script language='JavaScript'>alert('提交成功!');window.location.href=window.location.href;</script>");
在button上click事件用js设置Disabled
//**锁键盘ALT CTRL SHIFT***
function key(){
if(event.shiftKey){
window.close();} if(event.altKey){
window.close();} if(event.ctrlKey){
window.close();}
//return false;
}
document.onkeydown=key;
//*****锁鼠标右健***
function nocontextmenu(){
event.cancelBubble =true;
event.returnValue = false;
return false;}
document.oncontextmenu = nocontextmenu;
<head>
<body>
<script language="JavaScript">
<!--
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
点右键看看啊
</body>
</html>
这个是整个右键屏蔽
///////////////////////////////
转载的!