refresh page on button click jquery

JavaScript
$('#myElement').click(function() {
    location.reload();
});$('#something').click(function() {
    location.reload();
});
Source

Also in JavaScript: