<script>
function document.onkeydown()
{
(event.keyCode==16)) event.returnValue=false;
}
function document.oncontextmenu()
{
window.event.returnValue=false;
}
</script>

解决方案 »

  1.   

    event.keyCode==16没有效果呀,还是可以按着shift弹出新窗口.
    记得不是ctrl和shift这几个键不是这么写的.
      

  2.   

    换成这样子.
    你试一下用Shift+点击<a href="JavaScript:void window.open('http://www.baidu.com')">baidu</a>
      

  3.   

    是用Javascript代码写的,按SHIFT+鼠标左键的页面只是javascript:void而已.
    这也是一种办法呀.
    或者你说的:
    屏蔽 shift 加鼠标左键新开一网页
    ******************************************************************************
    <script language=javascript>
    function KeyDown(){
      if (window.event.srcElement.tagName == "A" && window.event.shiftKey) 
       window.event.returnValue = false;
      }
    </script>
    <body onkeydown="KeyDown()>
    *******************************************************************************
    你试试看?
      

  4.   

    <script language=javascript>
    function KeyDown(){
      if (window.event.srcElement.tagName == "A" && window.event.shiftKey) 
       window.event.returnValue = false;
      }
    </script>
    <body onkeydown="KeyDown()">
    都不行嘛
    你们试过行吗?
      

  5.   

    if (window.event.srcElement.tagName == "A" && window.event.shiftKey) 
    window.event.returnValue = false; //屏蔽 shift 加鼠标左键新开一网页
      

  6.   

    查看原文件:
    http://www.diy5.net/download/info/184.htm
      

  7.   

    试过行的,是不是你的JAVASCRIP哪里代码错了?你先写一个简单的网页试试。<script language=javascript>
    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>