Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.