Friday, August 17, 2007

Trap F1 key in IE, ByPass Showing Help Window

Blocking F1 keys using javascript,

function ByPass()
var kCode = window.event.keyCode;
       if(kCode == 112)
             alert('F1 Clicked'); // Alter Code As Your Wish
<body onhelp="return false;" onkeydown="ByPass()">

Note: Tested In IE 7

1 comment:

Anonymous said...

Thanks, this post helped me!


Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.