<script>
function document.onkeydown()
{
(event.keyCode==16)) event.returnValue=false;
}
function document.oncontextmenu()
{
window.event.returnValue=false;
}
</script>
function document.onkeydown()
{
(event.keyCode==16)) event.returnValue=false;
}
function document.oncontextmenu()
{
window.event.returnValue=false;
}
</script>
解决方案 »
- javascript 在IE6 IE5能弹出界面,但是在IE8 IE9 就无法弹出,js不兼容IE 8 、ie9
- 实现window.open方式向父窗口返回值
- 点击按钮在嵌套框架内如何跳转?
- 使用jquery生成表格行的问题
- 为什么document.getElementById()在IE7 和 IE6中存在差异?? 该如何解决呢??
- 新手关于.js文件与html页分离的问题
- iframe的onload事件问题
- 图片加载完成执行动作的问题
- 如何在iframe中禁止鼠标右键?急!
- 求助大神~如何打开网页后自动提取网址#或?后缀的内容到商务通?
- 请问如何让LISTBOX里面的内容对齐
- 关于下拉框弹出页面
记得不是ctrl和shift这几个键不是这么写的.
你试一下用Shift+点击<a href="JavaScript:void window.open('http://www.baidu.com')">baidu</a>
这也是一种办法呀.
或者你说的:
屏蔽 shift 加鼠标左键新开一网页
******************************************************************************
<script language=javascript>
function KeyDown(){
if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
window.event.returnValue = false;
}
</script>
<body onkeydown="KeyDown()>
*******************************************************************************
你试试看?
function KeyDown(){
if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
window.event.returnValue = false;
}
</script>
<body onkeydown="KeyDown()">
都不行嘛
你们试过行吗?
window.event.returnValue = false; //屏蔽 shift 加鼠标左键新开一网页
http://www.diy5.net/download/info/184.htm
function KeyDown(){
if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
window.event.returnValue = false;
}
</script>
<body onkeydown="KeyDown()">
<a href="http://www.csdn.net">csdn.net</a>