openWindowAsync

open external fun openWindowAsync(url: String): Promise<WindowClient?>(source)
open external fun openWindowAsync(url: URL): Promise<WindowClient?>(source)

The openWindow() method of the Clients interface creates a new top-level browsing context and loads a given URL. If the calling script doesn't have permission to show popups, openWindow() will throw an InvalidAccessError.

MDN Reference