HTML5 Dev Gal

Messing with HTML5, CSS3 and JavaScript.

Cool Firefox and Chrome Console Functions

| Comments

When working with JavaScript, CSS and / or HTML we devs love browser development tools. It’s a little known fact, however that the console in these tools have thier own handy functions.

For example, if you want to copy an array or an object in the console, you can type

copy(someArrayVariableName)

 Please note in this example I copied the contents of the clipboard to the console so you can see it.:

Copying array in console to clipboard in ChromeCopying array in console to clipboard in Chrome

There’s a whole bunch of other cool console functions as well. Check them out!

Chrome Command Line API

Firebug Command Line API

Comments