Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Console: reload page

Is there any way to reload chrome page (like clicking F5) from command line of chrome developer console?

I've tired searching but without effect...

like image 302
gozwei Avatar asked Sep 20 '12 16:09

gozwei


People also ask

How do you refresh a page in console?

First, load the page you want to refresh. To run the auto-refresh tab script in the DevTools console, you first need to open the console. On Windows, press the Shift, Ctrl, and I keys. On macOS, press Option, Command, and J.

How do you refresh a page on Google Chrome?

To hard refresh on Google Chrome on Windows, there are two ways you can do it: Hold down Ctrl and click the Reload button. Or Hold down Ctrl and press F5.

How do I refresh a page in dev tools?

Whenever you are working chrome, try this: Press F12 and open the developer tools. On the refresh button, on the top left of the browser window, do a right click.


2 Answers

location.reload() 

That was easy...

like image 77
SLaks Avatar answered Sep 22 '22 07:09

SLaks


Try

history.go() 

this is probably the shortest way

like image 42
Kamil Kiełczewski Avatar answered Sep 23 '22 07:09

Kamil Kiełczewski