views:

1328

answers:

8

e.g., does this exist: console.clear()?

+1  A: 

You can type clear(); in the Firebug command line. I don't think there's a way to do it from a web page though.

Patrick McElhaney
+2  A: 

If you want to see all the available methods under console:

for(var i in console) {
    console.log(i);
}
J-P
A: 

I have to agree with Patrick on that one. There is a clear() function that you can use in the console itself, but there doesn't appear to be a way to call it from a script.

http://getfirebug.com/console.html

http://getfirebug.com/commandline.html

TehOne
+1  A: 

_FirebugCommandLine.clear();

Will clear the console

+2  A: 

console.clear();

works for me

Doesn't work in Google Chrome though.
doekman
A: 

The full list of console methods (including console.clear()) is available here:

http://getfirebug.com/console.html

Jesse Merriman
A: 

even just clear(); works well in firebug console.

schrodinger's code
+1  A: 

console.clear() is part of the Firebug API. I fixed the documentation page: http://getfirebug.com/wiki/index.php/Console_API#console.clear.28.29

jjb

johnjbarton