chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page.events / PageEvent / WindowOpenEvent

WindowOpenEvent

data class WindowOpenEvent : PageEvent

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

Official doc

Constructors

<init>

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

WindowOpenEvent(url: String, windowName: String, windowFeatures: List<String>, userGesture: Boolean)

Properties

url

The URL for the new window.

val url: String

userGesture

Whether or not it was triggered by user gesture.

val userGesture: Boolean

windowFeatures

An array of enabled window features.

val windowFeatures: List<String>

windowName

Window name.

val windowName: String