How can I implement a button that refreshes the current page using JavaScript?
Here is what I have so far:
<button type="button" onClick="refreshPage()">Refresh</button>
<script>
function refreshPage() {
// What should I include here to refresh the page?
}
</script>
Can you help me complete the code to achieve the page refresh?