Question

Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload?

I often stumble when I see old errors in the log, that doesn't still exist.

Was it helpful?

Solution

Use:

console.clear();

If you want to erase all the previous logs and to show the fresh ones - put it on top of your JavaScript file.

OTHER TIPS

If you use jQuery try

$(function(){ console.clear(); });

Or try

window.onload = function(){ setTimeout("console.clear()",3000) }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top