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:

Parameter Type Description
event "dom-ready" The event name.
listener () => void Called when the document is loaded.

Returns: thisThis frame instance.