Skip to content

ElectronWebContentsModule.getFocusedWebContents method

ElectronWebContentsModule › getFocusedWebContents

Unofficial

Returns the web contents that is focused in this application, otherwise returns null.

Signature:

getFocusedWebContents(): ElectronWebContents | null

Returns: ElectronWebContents | nullThe focused WebContents, or null if none is focused.