Skip to content

ElectronWebContents.loadURL method

ElectronWebContents › loadURL

Unofficial

Loads the url in the window.

Signature:

loadURL(url: string, options?: ElectronBrowserWindowLoadURLOptions | undefined): Promise<void>

Parameters:

ParameterTypeDescription
urlstringThe URL to load. Must contain the protocol prefix.
options?ElectronBrowserWindowLoadURLOptions | undefinedOptions for loading the URL.

Returns: Promise<void>A promise that resolves when the page has finished loading.