ElectronWebFrameMain.on('dom-ready') method
ElectronWebFrameMain › on(‘dom-ready’)
Unofficial
Registers a listener for thedom-ready event, emitted when the document is loaded. Signature:
on(event: "dom-ready", listener: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "dom-ready" | The event name. |
| listener | () => void | Called when the document is loaded. |
Returns: this — This frame instance.