Window: dump() method

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

The Window.dump() method logs messages to the browser's standard output (stdout). If the browser was started from a terminal, output sent to dump() will appear in the terminal.

Output from dump() is not sent to the browser's developer tools console. To log to the developer tools console, use console.log().

Syntax

js
dump(message)

Parameters

message

A string containing the message to log.

Return value

None (undefined).

Specifications

This feature is not part of any specification.

Browser compatibility

desktop mobile server
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
dump
Non-standard
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – No support
Firefox 1.5 (Release date: 2005-11-29)
disabled
disabled From version 1.5 users must explicitly set the browser.dom.window.dump.enabled preference to true. To change preferences in Firefox, visit about:config.
Firefox – Partial support
Firefox 1.5 (Release date: 2005-11-29)
footnote Partial support
footnote By default, this method exists and can be called, but does nothing unless enabled in the browser's preferences.
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Chrome Android – No support
Chrome Android
footnote No support
Firefox for Android – Partial support
Firefox for Android 4 (Release date: 2011-03-29)
footnote Partial support
footnote This method exists but has no effect.
Opera Android – No support
Opera Android
footnote No support
Safari on iOS – No support
Safari on iOS
footnote No support
Samsung Internet – No support
Samsung Internet
footnote No support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote No support
Deno – No support
Deno
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Non-standard. Check cross-browser support before using.
User must explicitly enable this feature.
Has more compatibility info.