javascript - Internet Explorer or any Browser F1 keypress displays your own help -
I would like to display the selected help file to the user when I press F1. It should work on every browser where I test my application I do How can the default help file be displayed?
The default action of the F1 key can be changed in any browser other than AFAIK, IA. The Microsoft team generally sticks to maintain a consistent user experience in their applications, and this is why F1 has said that the help is opened without regard to return false That is, an alternative solution as the window.onhelp event.
// Internet Explorer (in the "onhelp" window) window.onhelp = task () {showMyHelpInsteadOfTheUsualDefaultHelpWindow (true); return false; } // Any other {document.onkeydown = function (evt) {cancelKeypress = (evt.keyCode == 112); If (cancel sepers) {// F1 was pressed Show MyHelpInsteadOfTheUsualDefaultHelpWindow (true); return false; }} // Additional documentation is required for Opera Documents. Compact = Function (EVT) {If (Cancel kpress) returned false; }}
The "other" step was optimized with the deleted answer, which was optimized, instead, it was optimized.
Comments
Post a Comment