mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / OnConsoleMessage Event

The message printed to the console.

The source script.

The source line of the script.

In This Topic
    OnConsoleMessage Event
    In This Topic
    Description

    Fired when you execute in JavaScript the console.log function.

    Syntax
    Visual Basic
    Public Event OnConsoleMessage( _
       ByVal ConsoleMessage As String, _
       ByVal Source As String, _
       ByVal Line As Long _
    )
    Parameters
    ConsoleMessage

    The message printed to the console.

    Source

    The source script.

    Line

    The source line of the script.

    Example
    Private Sub WebKitX1_OnConsoleMessage(ByVal ConsoleMessage As String, ByVal Source As String, ByVal Line As Long)
        On Error Resume Next
        AddLog Source & "(" & Line & "): " & ConsoleMessage
    End Sub
    private void WebKitXCEF31_OnConsoleMessage(object sender, AxWebKitXCEF3Lib._DWebKitXCEF3Events_OnConsoleMessageEvent e)
    {
        AddLog(e.source + "(" + e.line + "):" + e.consoleMessage);
    }
    See Also