Reload page without reloading console data
12,130
Solution 1
No. The console is a property of the window
object, which is what you're reloading.
You can overrule that at the browser level by keeping the console log data on reload, but it won't be part of the new window's scope: Chrome: Developer Tools > Console > Preserve log upon navigation
Solution 2
In chrome developer tool, right click console->preserve log upon navigation would persists the chrome console even when you refresh the page.
Author by
vishtree
Updated on June 08, 2022Comments
-
vishtree about 2 years
I am trying to run some javascript in google chrome console. In it somewhere between I need to perform
location.reload();
So that page gets refreshed, but with it whole console data (functions which I am defining in colsole) gets destroyed. So my question is as follow: Is there any way to refresh a webpage without reloading console window?
-
Rajat banerjee over 6 yearsthis is not what the user asked
-
Vimalnath over 6 years@Rajatbanerjee it is what it is