Subscribes to console messages from the currently active page. This is useful for debugging and logging.

Definition

console(): ConsoleMessage

Returns

ConsoleMessage

Details of a console message logged by the page’s JavaScript.