AcceptAlert Method (BrowserWindow)

Action

Accepts a JavaScript alert by pressing OK.

Syntax

C#
browserWindow.AcceptAlert([promptInput])
VB
browserWindow.AcceptAlert([promptInput])
Variable Description
promptInput Optional: If the JavaScript alert is a prompt, this text is passed to the alert. String.