Skip to content

ElectronWebContents.savePage method

ElectronWebContents › savePage

Unofficial

Saves the current web page to the given path.

Signature:

savePage(fullPath: string, saveType: "HTMLComplete" | "HTMLOnly" | "MHTML"): Promise<void>

Parameters:

Parameter Type Description
fullPath string The absolute path to save the page to.
saveType "HTMLComplete" | "HTMLOnly" | "MHTML" The save type.

Returns: Promise<void>A promise that resolves if the page is saved.