JavascriptDialogOpeningEvent

data class JavascriptDialogOpeningEvent(url: String, message: String, type: DialogType, hasBrowserHandler: Boolean, defaultPrompt: String?) : Event

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

Constructors

JavascriptDialogOpeningEvent
Link copied to clipboard
fun JavascriptDialogOpeningEvent(url: String, message: String, type: DialogType, hasBrowserHandler: Boolean, defaultPrompt: String? = null)

Functions

domain
Link copied to clipboard
open override fun domain(): String
Returns domain name for which event was generated.
eventName
Link copied to clipboard
open override fun eventName(): String
Returns event name as described in protocol.

Properties

defaultPrompt
Link copied to clipboard
val defaultPrompt: String? = null
Default dialog prompt.
hasBrowserHandler
Link copied to clipboard
val hasBrowserHandler: Boolean
True iff browser is capable showing or acting on the given dialog.
message
Link copied to clipboard
val message: String
Message that will be displayed by the dialog.
type
Link copied to clipboard
val type: DialogType
Dialog type.
url
Link copied to clipboard
val url: String
Frame url.

Sources

jvm source
Link copied to clipboard