Skip to content

ElectronWebContents.on('page-title-updated') method

ElectronWebContents › on(‘page-title-updated’)

Unofficial

Registers a listener for the page-title-updated event.

Signature:

on(event: "page-title-updated", listener: (event: ElectronEvent, title: string, explicitSet: boolean) => void): this

Parameters:

ParameterTypeDescription
event"page-title-updated"The event name.
listener(event: ElectronEvent, title: string, explicitSet: boolean) => voidCalled when the page-title-updated event is emitted.

Returns: thisThis web contents instance.