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"
listener() => voidCalled when the document is loaded.

Returns: this — This frame instance.