clear method

Clears messages from the console.

 

Syntax

var retVal = console.clear();

Parameters

  • retVal [out, retval]
    Type: boolean

Remarks

Does not clear script error messages or script code you entered into the console command line. To clear all messages inF12 developer tools, right-click the Console pane and then click the Clear console option.

See also

console

Using the F12 Tools Console to View Errors and Status