1<button type="button" onClick="refreshPage()">Close</button>
2
3<script>
4function refreshPage(){
5 window.location.reload();
6}
7</script>
8
1const reloadtButton = document.querySelector("#reload");
2// Reload everything:
3function reload() {
4 reload = location.reload();
5}
6// Event listeners for reload
7reloadButton.addEventListener("click", reload, false);
1<button type="button" onClick="refreshPage()">Close</button>
2
3<script>
4function refreshPage(){
5 window.location.reload();
6}
7</script>
1document.querySelector(".again").addEventListener("click", function (){
2 location.reload();
3})
1document.querySelector(".again").addEventListener("click", function reload(){
2 reload=location.reload();
3})