javascript code to reload a page code example
Example: script refresh js
window.location.href = window.location.pathname + window.location.search + window.location.hash;
window.location.href = window.location.pathname + window.location.search + window.location.hash;