Reload page | Sololearn: Learn to code for FREE!


Reload page

How can I reload the webpage in javascript? (share an example) I'm using the location.reload method but it's not working.

8/22/2018 5:57:49 PM

Moses Odhiambo

3 Answers

New Answer


Alex That won't work on chrome and mobile. (I'm not sure if it's only on my pc and cell phone) Do you have like a code example or something?




You should be able to simply try that command in the console of your browser (and it should reload the page). But if you want an example, here's one where it is used in a hyperlink: <a href="JavaScript:window.location.reload(true);">Reload Me</a> Sounds like the issue might be specific to your PC or browser. Sometimes a restart does the magic :) Good luck, and let us know the verdict.