From FirebugWiki

Revision as of 00:11, 22 November 2013 by Sebastianz (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Writes a message to the console and opens a nested block to indent all future messages sent to the console. Call console.groupEnd() to close the block.


[edit] Syntax[object, ...])

[edit] Parameters

[edit] object

Object to use as label for the group. This can be any kind of object, though will normally be a string. If no object is given, "(nothing to output)" will be shown as default text.

[edit] Examples"Group of log messages");
console.log("Log message");"Info message");

This creates a group called "Group of log messages" containing a log and an info message.

[edit] See also

Personal tools