js event reload code example
Example 1: jquery reload page
$('#myElement').click(function() {
location.reload();
});
Example 2: refresh page js
window.location.reload(true);
$('#myElement').click(function() {
location.reload();
});
window.location.reload(true);