跳到主要内容

detachEvent

Unsubscribes from the specified event.

Syntax

expression.detachEvent(eventName);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
eventNameRequiredstringThe event name.

Returns

This method doesn't return any data.

Example

This example shows how to unsubscribe on hyperlink click event.

Api.detachEvent("asc_onHyperlinkClick");