ASPxClientUtils.PreventEvent(htmlEvent) Method
In This Article
Cancels the default action of the specified event.
#Declaration
TypeScript
static PreventEvent(
htmlEvent: any
): boolean
#Parameters
Name | Type | Description |
---|---|---|
html |
any | An object that specifies the required HTML event. |
#Returns
Type | Description |
---|---|
boolean | Always |
#Remarks
You can use this method in the following manner, for instance:
myObject.onmousedown="return ASPxClientUtils.PreventEvent(event);"
See Also