Skip to content

ElectronWebContents.on('did-start-loading') method

ElectronWebContents › on(‘did-start-loading’)

Unofficial

Registers a listener for the did-start-loading event.

Signature:

on(event: "did-start-loading", listener: (...args: unknown[]) => void): this

Parameters:

ParameterTypeDescription
event"did-start-loading"The event name.
listener(...args: unknown[]) => voidCalled when the did-start-loading event is emitted.

Returns: thisThis web contents instance.