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
Post a Comment