好多地方都是这么写的:
if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
window.event.returnValue = false; //屏蔽 shift 加鼠标左键新开一网页但根本无效呀?
if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
window.event.returnValue = false; //屏蔽 shift 加鼠标左键新开一网页但根本无效呀?
{
if(window.event.shiftKey&&event.button==1)
{
return false
}}
<html><head>
<script>
document.onkeydown=keyhand
document.onmousedown=keyhand
function keyhand()
{
if(event.shiftKey&&event.button==1)
{
alert("")
}}</script>
</head><body>
</body></html>