js force refresh code example
Example 1: refresh window js
window.location.reload();
Example 2: javascrpt refresh page
location.reload();
Example 3: refresh javascript
location.reload();
Works like refresh button.
Example 4: script refresh js
window.location.href = window.location.pathname + window.location.search + window.location.hash;