How to refresh page in javascript?

You can refresh a web page using javascript location.reload method.

<button onclick="refresh_page()">Refresh</button>

<script>
function refresh_page() {
  location.reload();
}
</script>

Related Sourcecode

More Sourcecode

×
Google login
SignUp with Email
X