how to use location.reload on button 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>