function document.onmousedown(){
if(window.event.button == 4)
{
window.event.button = 0;//本句不成功,为什么????
window.event.returnValue = false;
}}
以上代码本意是用来屏蔽网页中 点击了鼠标中键消息的。但红色部分不成功,请指教。
if(window.event.button == 4)
{
window.event.button = 0;//本句不成功,为什么????
window.event.returnValue = false;
}}
以上代码本意是用来屏蔽网页中 点击了鼠标中键消息的。但红色部分不成功,请指教。
window.event.button = 0;本意让浏览器认为没有按键操作但不成功
直接return了不行吗,为什么还要加这句呢