Skip to main content

friendly-captcha-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(this: HTMLElement, ev: FRCEventMap[K]) => any | { handleEvent: (ev: FRCEventMap[K]) => any; }
optionsEventListenerOptions(Optional)

Returns:

void