referesh a page in js code example
Example 1: reload webpage javascript
location.reload();
Example 2: how to refresh a page in javascript
document.querySelector(".again").addEventListener("click", function (){
location.reload();
})
location.reload();
document.querySelector(".again").addEventListener("click", function (){
location.reload();
})