how to refresh a page from javascript 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;