Skip to main content

foundation-utils.openpopup

Home > @genesislcap/foundation-utils > openPopup

openPopup() function

Opens a new browser window with the specified URL, target, width, and height.

Signature:

openPopup: (urlNavigate: string, target: string, popUpWidth?: number, popUpHeight?: number) => Window

Parameters

Parameter

Type

Description

urlNavigate

string

The URL to navigate to.

target

string

The name of the new window.

popUpWidth

number

(Optional) The width of the new window (optional).

popUpHeight

number

(Optional) The height of the new window (optional).

Returns:

Window

A reference to the new window.