Skip to content

ElectronWebFrameMain.on('dom-ready') method

ElectronWebFrameMain › on(‘dom-ready’)

Unofficial

Registers a listener for the dom-ready event, emitted when the document is loaded.

Signature:

on(event: "dom-ready", listener: () => void): this

Parameters:

ParameterTypeDescription
event"dom-ready"The event name.
listener() => voidCalled when the document is loaded.

Returns: thisThis frame instance.