how to get a page to reload on click in js code example
Example: how to reload page on button click in javascript
<button type="button" onClick="refreshPage()">Close</button>
<script>
function refreshPage(){
window.location.reload();
}
</script>