<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openurl(url)
{
location.href=url;
}
//-->
</SCRIPT>
<BODY>
<a href="#" onclick="javascript:openurl('http://www.sina.com.cn');return false;">新浪</a>
</BODY>
</HTML>

解决方案 »

  1.   

    if (event.shiftKey)
    {
       event.returnValue=false;
    }
    else
    {
       event.returnValue=true;
    }
      

  2.   

    我写的详细一点,我是CSDN的新人,记得给我点分:
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    <script>
    function on_click()
    {
    if (event.shiftKey)
    {
       event.returnValue=false;
    }
    else
    {
       event.returnValue=true;
    }}
    </script>
    </head><body>
    <a href="http://www.sina.com.cn" onclick="on_click()">sina</a>
    </body></html>