how to refresh a page on js code example
Example 1: jquery reload page
$('#myElement').click(function() {
location.reload();
});
Example 2: reload page javascript
window.location.reload();
$('#myElement').click(function() {
location.reload();
});
window.location.reload();