reload js function in js code example
Example 1: refresh window js
window.location.reload();
Example 2: jquery reload page
$('#myElement').click(function() {
location.reload();
});
Example 3: js refresh button
<a onClick="window.location.reload()">Refresh</a>