html execute javascript on refresh code example
Example 1: javascript reload page
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();
})