Fires when a user presses a key.
Syntax
VARIANT_BOOL onkeypress();
Return Value
Return VARIANT_TRUE if bubbling should be canceled, or VARIANT_FALSE to continue bubbling up the event chain.
Remarks
For more information, see onkeypress in the Dynamic HTML Reference.
This event is available in Microsoft® Internet Explorer 4.0 and later.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Applies To
Anchor, Area, Button, Document, Element, Form, Image, InputFile, InputImage, InputText, Link, Label, Map, Marquee, Object, OptionButton, Script, Select, Style, Table, TextContainer, Window2
See Also