TOC PREV NEXT INDEX

domref



isChar


Returns a boolean indicating whether the event produced a key character or not.

Syntax

bool = event.isChar
 

Parameters

boolean true | false

Example

if e.isChar
 
  echoInput(e.type);
 
}
 

Notes

Some key combos may raise events but not produce any character (example: ctrl + alt ?). When this is the case, isChar returns false.

isChar is used when event handlers need to do something like echo the input on the screen.

Specification

Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX