xxxxxxxxxx
$('#myElement').click(function() {
location.reload();
});
xxxxxxxxxx
// reload page from cache:
location.reload();
// reload page from server:
location.reload(true);
xxxxxxxxxx
$(document).ready(function() {
$("button").click(function() {
location.reload(true);
});
});
xxxxxxxxxx
$(function () {
if (performance.navigation.type == 1) {
yourFunction();
}
});