Contents

handleJavaScriptAlert(message:initiatedBy:)

A JavaScript alert() function has been invoked.

Declaration

@MainActor func handleJavaScriptAlert(message: String, initiatedBy frame: WebPage.FrameInfo) async

Parameters

  • message:

    The message provided by JavaScript.

  • frame:

    Information about the frame whose JavaScript process initiated this call.