Instead of clear the web console output using the inbuilt button or calling clear()
method of the browser and without reloading the page, is there a way to clear web browser console output (chrome/firefox) when the browser gets a response from backend? So in this case, at a particular time console output is relevant only most recent response. Thank you!
Asked
Active
Viewed 14 times
0
-
[RTM](https://developer.mozilla.org/en-US/docs/Web/API/Console/clear) ? – mplungjan Jun 16 '20 at 10:52
-
I get `console.clear() was prevented due to 'Preserve log'` – mplungjan Jun 16 '20 at 10:53
-
I'm wondering, why are you saying This question already has answers here. At least you read my question? My question Is different from it. – Jun 16 '20 at 10:55
-
No it is not. `function loadData() { console.clear(); getData() }` – mplungjan Jun 16 '20 at 11:09
-
Thank you. I'm newbie to SO. extremely sorry. I will refer it – Jun 16 '20 at 11:21