Skip to main content
Version: v2

@friendlycaptcha/sdk > WidgetHandle > removeEventListener

WidgetHandle.removeEventListener() method

Shorthand for this.getElement().removeEventListener (that is strictly typed in Typescript)

Signature:

removeEventListener<K extends keyof FRCEventMap>(type: K, listener: (this: HTMLElement, ev: FRCEventMap[K]) => any | {
handleEvent: (ev: FRCEventMap[K]) => any;
}, options?: EventListenerOptions): void;

Parameters

ParameterTypeDescription
typeK
listener
optionsEventListenerOptions(Optional)

Returns:

void