Skip to main content

javascript_console

I use the console in Firebug all the time to test out one-liners in Javascript (like regexes for instance), but I had no idea that you could type multiple lines of JS in Firebug and run it. As I should have known of course they implemented this. Here's how:

You can either just paste a block of code into the console edit field (that's the line at the bottom of the console window that starts with '>>>' and has a flashing cursor), or click the little red icon at the lower right side of the console window.

Either way, it brings up the Firebug JavaScript editor window. Just click the 'Run' button at the bottom, tweak as necessary, and copy into your final desitination!

Tags:

Programming
Post by Cappy Popp
September 27, 2007