Published
- 1 min read
how to reload page on button click in javascript
The solution for this is noted below
how to reload page on button click in javascript
Solution
<button type="button" onClick="refreshPage()">Close</button>
<script>
function refreshPage(){
window.location.reload();
}
</script>
Try other methods by searching on the site. That is if this doesn’t work