// reload page from cache:
location.reload();
// reload page from server:
location.reload(true);
$(document).ready(function() {
$("button").click(function() {
location.reload(true);
});
});
$("#mydiv").load(location.href + " #mydiv");
//this is actualy not so nice but it does the job.
$('#something').click(function() {
location.reload();
});
$(function () {
if (performance.navigation.type == 1) {
yourFunction();
}
});