When the user presses the F1 key, I plan to display our application help and suppress the default action. I tried with various options so as not to show IE popup. Here is my code:
document.addEventListener('keydown', function (e) { if (e.key === 'F1' || e.keyCode == 112) { e.cancelBubble = true; e.cancelable = true; e.stopPropagation(); e.preventDefault(); e.returnValue = false;
Please let me know how I can achieve by showing the help page of my application instead of IE. I am using version IE11.
javascript jquery dom html internet-explorer
AJAY cHIGURUPATI Mar 26 '15 at 12:39 2015-03-26 12:39
source share