1//with no cache
2document.location.reload(true);
3
4//else
5
6document.location.reload();
1<!DOCTYPE html>
2<html>
3<body>
4 <p id="demo">Click the button Try it </p>
5 <button onclick="myFunction()">Try it</button>
6
7 <button onClick="window.location.reload();">Refresh Page</button>
8
9 <script>
10 function myFunction() {
11 document.getElementById("demo").innerHTML = "Click the button refrech PAGE";
12 }
13 </script>
14</body>
15</html>