Can I make a function to refresh the page using JavaScript (same browser refresh button)
Thanks
You can do this by using: window.location.reload()
window.location.reload()
I added a refresh button in a form I made.
<script> function refresh(){ window.location.reload("Refresh") } </script>
and then called it via button in html:
<p><input type="button" value="Refresh" onClick="refresh(this)"></p>
google? : javascript refresh
<!-- Codes by Quackit.com --> <a href="javascript:location.reload(true)">Refresh this page</a>
Copyright © 2021 Jogjafile Inc.
You can do this by using:
window.location.reload()