javascript - Overwrite ctrl+p in IE 11 -


i unable overwrite ctrl+p in ie-11. please suggest something. tried below code snippet .but, not working

code prevent default action

document.onkeydown = function(event) {          event.cancelbubble = true;          event.returnvalue = false;          event.keycode = 0;         event.stoppropagation();         event.preventdefault();            return false;     } 

its working in compatibility mode on. when compatibility mode off , not working . please suggest solutions of it.

try,

 if(e.ctrlkey && e.keycode == 80){     return false; } 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -