Chrome’s console commands

how-to
Apr 14, 20131 min

As if the JavaScript console in Chrome couldn’t be any more awesome. Check it out: Command Line API Reference. Yep, it’s legit. I’ve been using Firebug and the like for years and only just ran across this feature of Chrome’s JavaScript console.

My favorite: getEventListeners. Understanding how the DOM is augmented with listeners is amazingly helpful!

All you have to do is fire up the JavaScript Console in Chrome and in the actual console window, you have a host a commands you can execute now just like you have in any other terminal app. Very helpful!

andrew_glover

When Andrew Glover isn't listening to “Funkytown” or “Le Freak” he enjoys speaking on the No Fluff Just Stuff Tour. He also writes articles for multiple online publications including IBM's developerWorks and O'Reilly’s ONJava and ONLamp portals. Andrew is also the co-author of Java Testing Patterns, which was published by Wiley in September 2004; Addison-Wesley’s Continuous Integration; and Manning’s Groovy in Action.

More from this author