Platform SDK: Web Telephony Engine

onkeypress

The onkeypress event fires when a caller presses a key for the text controls. The ASCII code of the digit that the caller pressed can be found in the external.window.Event.keyCode property, and can be changed by this event handler. If the code is changed to 0, the digit is ignored.

This event will not bubble.

The WTE supports events in all three modes supported by Internet Explorer — inline, using FOR and EVENT attributes, and Visual Basic style.

If the default scripting language in the document (specified by the first LANGUAGE attribute defined) is VBScript, the scripting language should be specified on the element containing the event handler.

Fired on

INPUT TYPE=text, SELECT, TEXTAREA