how to refresh js code example
Example 1: javascript reload page
location.reload();
Example 2: script refresh js
window.location.href = window.location.pathname + window.location.search + window.location.hash;
location.reload();
window.location.href = window.location.pathname + window.location.search + window.location.hash;