The requested page is not available for the requested platform. You are viewing the content for Default platform.

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