× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Capturing function keys can be a chore, but it is fairly straightforward.

As in all browsers, IE accepts the onKeyPress event. Define it as onkeypress='myFunction(event)'. Within the event handler, you can interrogate the event with event.keyCode to get the ASCII code of the key pressed. The trick is to use event.cancelBubble = true; to stop the event from percolating back to the browser.

The remaining nasty bit is the F1 key. Unlike other browsers, IE supports an onHelp event (as well as onContextMenu to capture right-clicks). I need to capture this because my entry-level course teaches people how to use F1 in all the glorious ways that IBM i supports. I don't want the IE help window to pop up.
Bill



William A. Hansen
whansen@xxxxxxxxxxxxx
Manta Technologies Inc.
Toll-free: (800) 406-2682 x 101
Direct: (303) 862-4562

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.