Tucker Jones
Tucker Jones

Reputation: 81

Google chrome also has a console object. Where is its equivalent API page?

if I google 'firebug console API' it leads me to this page:

http://getfirebug.com/wiki/index.php/Console_API

which documents for me the Javascript console API I can use to write to the firebug console

Google chrome also has a console object. Where is its equivalent API page?

For example, Firebug, allows: console.log('%c%s', 'color: #ABC', 'hi') to output a string in a particular color

While google chrome only accepts console.log('%s', 'hi) - it dosn't accept %c

Upvotes: 6

Views: 2537

Answers (2)

serg
serg

Reputation: 111265

Chrome is using Webkit engine, same as Safari, so you can check out Console API from Safari.

Upvotes: 8

RwwL
RwwL

Reputation: 3308

Don't have a link to full documentation but you can at least glean all the methods available by running console.log(console);

Upvotes: 2

Related Questions