Can I make a function to refresh the page using JavaScript (same browser refresh button)
Thanks
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()
google? : javascript refresh
<!-- Codes by Quackit.com -->
<a href="javascript:location.reload(true)">Refresh this page</a>
You can do this by using: 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>
© 2022 - 2024 — McMap. All rights reserved.