Javascript Reference
Categories: event

javascript event charCode

@March 15, 2008, 1:22 a.m.
charCodeFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a

Read-only

Returns an integer corresponding to the Unicode value of the character generated by the key that fired the event. The character code is different from the key code, as the character code distinguishes between upper- and lowercase letters (for example, 97 for "a" and 65 for "A"), whereas the keyCode value is the same for that key, regardless of the character created from it. This property generally contains a value only for onkeypress events; the value is zero for onkeydown and onkeyup events. For the IE equivalent, see the keyCode property.

 

When the keyboard events module is completed for W3C DOM Level 3, this property will probably have a different name.

 
Example
 
if (evt.charCode > 96 && evt.charCode < 123) {
    evt.target.value += String.fromCharCode(evt.charCode - 32);
    evt.preventDefault( );
}
 
Value

Integer.

 
Default

Event-specific.

プレドニン通販おすすめ - <a href="https://jpaonlinep.com/jazithromycin/">正規品ジスロマック錠の正しい処方</a> アジスロマイシン - 500mg
Ihwhqw - 3 hours
バイアグラ通販 - <a href="https://jpedpharm.com/tadalafil/">タダラフィル通販で買えますか</a> タダラフィル 薬局で買える
Tidzqh - 20 hours
estradiol 2mg for sale - <a href="https://festrolp.com/letrozole/">letrozole oral</a> buy anastrozole without prescription
Makjem - 6 days

Powered by Linode.