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:

Parameter Type Description
url string The URL to load. Must contain the protocol prefix.
options? ElectronBrowserWindowLoadURLOptions | undefined Options for loading the URL.

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