if(navigator.userAgent.indexOf("MSIE")>0)
        {
         //IE
         document.onkeydown=function(){}
        }else{
         //非IE
         window.onkeydown=function(){}
        }