Web Connector 25.3
Web Connector Help

# Handle JavaScript Dialogs and Alerts

Some web sites use JavaScript to present dialog boxes or alert messages. You can configure Web Connector to handle these. The connector automatically dismisses any dialog that you do not handle.

The following example handles a dialog box on a page named `prompt.htm`. Web Connector responds in the same way as a person who enters the text "Here is my response" and clicks the "OK" button.

    [MyTask]
    ...
    JsDialogSections=JavaScriptDialog0

    [JavaScriptDialog0]
    JsDialogUrlRegex=.*/prompt.htm
    JsDialogPromptText=Here is my response
    JsDialogAccept=TRUE

For more information about the configuration parameters that you can use to handle JavaScript dialog boxes, refer to the Web Connector Reference.

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Web Connector 25.3

Topic Title: Handle JavaScript Dialogs and Alerts