Skip to main content

ASPxClientUtils.PreventEvent(htmlEvent) Method

Cancels the default action of the specified event.

Declaration

static PreventEvent(
    htmlEvent: any
): boolean

Parameters

Name Type Description
htmlEvent any

An object that specifies the required HTML event.

Returns

Type Description
boolean

Always false.

Remarks

You can use this method in the following manner, for instance:

myObject.onmousedown="return ASPxClientUtils.PreventEvent(event);"
See Also