Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.UI.DomEvent charCode Field

Gets the character code of the key that raised the associated event.

Syntax

var charCode = domEventVar.charCode;

Return Value

An integer value that represents the character code of the key that was pressed in order to raise the event.

Remarks

Use the charCode field to get the character code of the pressed key.