Refresh the page without reloading console data

I am trying to run some javascript in google chrome console. In it, somewhere between me, you need to fulfill

location.reload();

      

So this page is refreshed, but it destroys all console data (functions that I define in the call system). So my question is this: Is there a way to refresh the web page without reloading the console window?

+3


source to share


2 answers


Not. Console is a property of the object window

you are reloading.



You can reverse this at the browser level by keeping the console log data across reboots, but it won't be part of the new window area: Chrome: Development Tools> Console> Save Log On Navigation

+6


source


In chrome developer tool, right click on console-> save log on navigation, will persist in chrome console even on page refresh.



0


source







All Articles