onkeydown Property

Microsoft FrontPage Visual Basic

onkeydown Property

Returns or sets a Variant that represents the value of the onkeydown attribute that is the name of the script to run when the onkeydown event fires.

expression.onkeydown

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

See also the onkeypress and onkeyup properties.

Example

The following example sets the onkeydown attribute for the BODY element in the active document.

    ActiveDocument.body.onkeydown = "script()"