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